diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-04-20 19:15:01 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-04-20 19:15:01 +0200 |
commit | bd47a0546fe60ada3cc65e76b8fcf54c07f0c63e (patch) | |
tree | f755413fb94269b90244336ee8e8528941c0cd72 /src/main/java/de | |
parent | 5dce7d198d62639adc3d1603e4d05f42065e8068 (diff) |
made nimbuzz work around work with newly created conferences as well
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/pixart/messenger/parser/PresenceParser.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/parser/PresenceParser.java b/src/main/java/de/pixart/messenger/parser/PresenceParser.java index cabac0d0a..8e1b0b006 100644 --- a/src/main/java/de/pixart/messenger/parser/PresenceParser.java +++ b/src/main/java/de/pixart/messenger/parser/PresenceParser.java @@ -66,7 +66,8 @@ public class PresenceParser extends AbstractParser implements if (item != null && !from.isBareJid()) { mucOptions.setError(MucOptions.Error.NONE); MucOptions.User user = parseItem(conversation, item, from); - if (codes.contains(MucOptions.STATUS_CODE_SELF_PRESENCE) || (codes.isEmpty() && jid.equals(item.getAttributeAsJid("jid")))) { + if (codes.contains(MucOptions.STATUS_CODE_SELF_PRESENCE) + || ((codes.isEmpty() || codes.contains(MucOptions.STATUS_CODE_ROOM_CREATED)) && jid.equals(item.getAttributeAsJid("jid")))) { mucOptions.setOnline(); mucOptions.setSelf(user); if (mucOptions.onRenameListener != null) { |