mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-01 05:02:21 -05:00
made muc parser more compatible with legacy mucs?! (whatever that is exactly)
This commit is contained in:
parent
605998c966
commit
c273637156
@ -179,7 +179,7 @@ public class MucOptions {
|
|||||||
user.setAffiliation(item.getAttribute("affiliation"));
|
user.setAffiliation(item.getAttribute("affiliation"));
|
||||||
user.setRole(item.getAttribute("role"));
|
user.setRole(item.getAttribute("role"));
|
||||||
user.setJid(item.getAttributeAsJid("jid"));
|
user.setJid(item.getAttributeAsJid("jid"));
|
||||||
if (codes.contains(STATUS_CODE_SELF_PRESENCE)) {
|
if (codes.contains(STATUS_CODE_SELF_PRESENCE) || packet.getFrom().equals(this.conversation.getContactJid())) {
|
||||||
this.isOnline = true;
|
this.isOnline = true;
|
||||||
this.error = ERROR_NO_ERROR;
|
this.error = ERROR_NO_ERROR;
|
||||||
self = user;
|
self = user;
|
||||||
@ -190,8 +190,6 @@ public class MucOptions {
|
|||||||
this.onJoinListener.onSuccess();
|
this.onJoinListener.onSuccess();
|
||||||
this.onJoinListener = null;
|
this.onJoinListener = null;
|
||||||
}
|
}
|
||||||
} else if (packet.getFrom().equals(this.conversation.getContactJid())) {
|
|
||||||
self = user;
|
|
||||||
} else {
|
} else {
|
||||||
addUser(user);
|
addUser(user);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user