diff options
Diffstat (limited to 'src/eu/siacs/conversations/entities')
-rw-r--r-- | src/eu/siacs/conversations/entities/Conversation.java | 2 | ||||
-rw-r--r-- | src/eu/siacs/conversations/entities/MucOptions.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/eu/siacs/conversations/entities/Conversation.java b/src/eu/siacs/conversations/entities/Conversation.java index 79757f1e..f8c6a2a6 100644 --- a/src/eu/siacs/conversations/entities/Conversation.java +++ b/src/eu/siacs/conversations/entities/Conversation.java @@ -293,7 +293,7 @@ public class Conversation extends AbstractEntity { return this.otrFingerprint; } - public MucOptions getMucOptions() { + public synchronized MucOptions getMucOptions() { if (this.mucOptions == null) { this.mucOptions = new MucOptions(); } diff --git a/src/eu/siacs/conversations/entities/MucOptions.java b/src/eu/siacs/conversations/entities/MucOptions.java index e429a5ab..fbca8340 100644 --- a/src/eu/siacs/conversations/entities/MucOptions.java +++ b/src/eu/siacs/conversations/entities/MucOptions.java @@ -107,7 +107,7 @@ public class MucOptions { String type = packet.getAttribute("type"); if (type==null) { User user = new User(); - Element item = packet.findChild("x").findChild("item"); + Element item = packet.findChild("x","http://jabber.org/protocol/muc#user").findChild("item"); user.setName(name); user.setAffiliation(item.getAttribute("affiliation")); user.setRole(item.getAttribute("role")); @@ -121,7 +121,7 @@ public class MucOptions { } } else if (type.equals("unavailable")) { if (name.equals(getNick())) { - Element item = packet.findChild("x").findChild("item"); + Element item = packet.findChild("x","http://jabber.org/protocol/muc#user").findChild("item"); String nick = item.getAttribute("nick"); if (nick!=null) { aboutToRename = false; |