made nimbuzz work around work with newly created conferences as well

This commit is contained in:
Daniel Gultsch 2017-04-20 11:35:38 +02:00
parent 067daa81f4
commit ae85a9e87b
1 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,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) {