Updated to latest smack.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@4869 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2006-08-09 23:07:58 +00:00
committed by derek
parent a88eb81a9a
commit 0dba8372ee
28 changed files with 375 additions and 248 deletions

View File

@ -267,10 +267,10 @@ public class ChatContainer extends SparkTabbedPane implements MessageListener, C
}
final String userid = StringUtils.parseResource(p.getFrom());
if (p.getType() == Presence.Type.UNAVAILABLE) {
if (p.getType() == Presence.Type.unavailable) {
fireUserHasLeft(chatRoom, userid);
}
else if (p.getType() == Presence.Type.AVAILABLE) {
else if (p.getType() == Presence.Type.available) {
fireUserHasJoined(chatRoom, userid);
}
@ -282,7 +282,7 @@ public class ChatContainer extends SparkTabbedPane implements MessageListener, C
if (statusItem == null && p == null) {
tabIcon = SparkRes.getImageIcon(SparkRes.CLEAR_BALL_ICON);
}
else if (statusItem == null && p != null && p.getType() == Presence.Type.AVAILABLE) {
else if (statusItem == null && p != null && p.getType() == Presence.Type.available) {
tabIcon = SparkRes.getImageIcon(SparkRes.GREEN_BALL);
}
else {