aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/xmpp
diff options
context:
space:
mode:
authorSam Whited <sam@samwhited.com>2016-09-12 11:33:36 -0500
committerChristian Schneppe <christian@pix-art.de>2016-09-14 21:33:36 +0200
commitf1ca63e955a79cd12ef73b7c1f923fcd63732dac (patch)
tree3cc4b5800b3daf543c825f09bd49e783f467748d /src/main/java/de/pixart/messenger/xmpp
parent6c2684b8585a9401eff369dfcc41a7f7d5c3e168 (diff)
Use JID returned by the server during bind
Not just the resourcepart
Diffstat (limited to 'src/main/java/de/pixart/messenger/xmpp')
-rw-r--r--src/main/java/de/pixart/messenger/xmpp/XmppConnection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
index 784289975..ef07d379a 100644
--- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
+++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
@@ -994,7 +994,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();