mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user