Commit b505bf4f authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Show session as offline when connected but not available. JM-1418

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10633 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2425c6fb
...@@ -168,9 +168,13 @@ ...@@ -168,9 +168,13 @@
else { else {
statusTxt = ""; statusTxt = "";
} }
if (show == Presence.Show.away) { if (!currentSess.getPresence().isAvailable()) {
%>
<img src="images/user-clear-16x16.gif" width="16" height="16" border="0" title="<fmt:message key="user.properties.offline" />" alt="<fmt:message key="user.properties.offline" />">
<fmt:message key="user.properties.offline" />
<%
} else if (show == Presence.Show.away) {
%> %>
<img src="images/im_away.gif" width="16" height="16" border="0" title="<fmt:message key="session.details.away" />" alt="<fmt:message key="session.details.away" />"> <img src="images/im_away.gif" width="16" height="16" border="0" title="<fmt:message key="session.details.away" />" alt="<fmt:message key="session.details.away" />">
<fmt:message key="session.details.away" /> <%= statusTxt %> <fmt:message key="session.details.away" /> <%= statusTxt %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment