Fixed issue when logout and login on one app run

This commit is contained in:
ChronosX88 2019-05-26 21:09:41 +04:00
parent ba86adbc78
commit 8e31c37571

View File

@ -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()) {