made muc parser more compatible with legacy mucs?! (whatever that is exactly)

iNPUTmice created

Change summary

src/main/java/eu/siacs/conversations/entities/MucOptions.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

Detailed changes

src/main/java/eu/siacs/conversations/entities/MucOptions.java 🔗

@@ -179,7 +179,7 @@ public class MucOptions {
 						user.setAffiliation(item.getAttribute("affiliation"));
 						user.setRole(item.getAttribute("role"));
 						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.error = ERROR_NO_ERROR;
 							self = user;
@@ -190,8 +190,6 @@ public class MucOptions {
 								this.onJoinListener.onSuccess();
 								this.onJoinListener = null;
 							}
-						} else if (packet.getFrom().equals(this.conversation.getContactJid())) {
-							self = user;
 						} else {
 							addUser(user);
 						}