Change summary
src/main/java/eu/siacs/conversations/parser/MessageParser.java | 7 ---
1 file changed, 1 insertion(+), 6 deletions(-)
Detailed changes
@@ -319,12 +319,7 @@ public class MessageParser extends AbstractParser implements
}
} else if (packet.hasChild("x", "jabber:x:conference")) {
Element x = packet.findChild("x", "jabber:x:conference");
- Jid jid;
- try {
- jid = Jid.fromString(x.getAttribute("jid"));
- } catch (InvalidJidException e) {
- jid = null;
- }
+ Jid jid = x.getAttributeAsJid("jid");
String password = x.getAttribute("password");
if (jid != null) {
Conversation conversation = mXmppConnectionService