From 8e31c37571ef9d869a45cae921f3f2a7eedc2d5e Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Sun, 26 May 2019 21:09:41 +0400 Subject: [PATCH] Fixed issue when logout and login on one app run --- .../main/java/io/github/chronosx88/influence/XMPPConnection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/io/github/chronosx88/influence/XMPPConnection.java b/app/src/main/java/io/github/chronosx88/influence/XMPPConnection.java index 4c7eda1..398d80f 100644 --- a/app/src/main/java/io/github/chronosx88/influence/XMPPConnection.java +++ b/app/src/main/java/io/github/chronosx88/influence/XMPPConnection.java @@ -120,6 +120,7 @@ public class XMPPConnection implements ConnectionListener { roster = roster.getInstanceFor(connection); roster.setSubscriptionMode(Roster.SubscriptionMode.accept_all); roster.addPresenceEventListener(networkHandler); + AppHelper.setJid(credentials.username + "@" + credentials.jabberHost); mamManager = MamManager.getInstanceFor(connection); try { if(mamManager.isSupported()) {