Commit 398f6765 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Show as offline when user is not available but connected + authenticated. JM-1091

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8626 b35dd754-fafc-0310-a699-88a17e54d16e
parent dd244d08
...@@ -69,8 +69,15 @@ ...@@ -69,8 +69,15 @@
<% Presence.Show _show = sess.getPresence().getShow(); <% Presence.Show _show = sess.getPresence().getShow();
String _stat = sess.getPresence().getStatus(); String _stat = sess.getPresence().getStatus();
if (_show == Presence.Show.away) { if (!sess.getPresence().isAvailable()) {
%> %>
<td width="1%"
><img src="images/user-clear-16x16.gif" width="16" height="16" border="0" title="<fmt:message key="user.properties.offline" />"
></td>
<td width="46%">
<fmt:message key="user.properties.offline" />
</td>
<% } else if (_show == Presence.Show.away) { %>
<td width="1%" <td width="1%"
><img src="images/im_away.gif" width="16" height="16" border="0" title="<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" />"
></td> ></td>
......
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