diff options
author | Sam Whited <sam@samwhited.com> | 2016-09-12 11:33:36 -0500 |
---|---|---|
committer | Sam Whited <sam@samwhited.com> | 2016-09-12 11:33:36 -0500 |
commit | 1a0b538166134963fcb3a250caa78a7b625d6266 (patch) | |
tree | 302d52db11758c86dcd155db7181ec4300141ed7 | |
parent | 805717673c1277e7f6783b4f6e6827741c650619 (diff) |
Use JID returned by the server during bind
Not just the resourcepart
-rw-r--r-- | src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java index 8ff02e46..fca5c566 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java @@ -981,7 +981,7 @@ public class XmppConnection implements Runnable { final Element jid = bind.findChild("jid"); if (jid != null && jid.getContent() != null) { try { - account.setResource(Jid.fromString(jid.getContent()).getResourcepart()); + account.setJid(Jid.fromString(jid.getContent())); if (streamFeatures.hasChild("session") && !streamFeatures.findChild("session").hasChild("optional")) { sendStartSession(); |