From da65960fd1bbe7cc0ac137498137badbe3feaf08 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 19 Jan 2023 15:31:24 +0100 Subject: [PATCH] reconnect account after adding to ConnectionPool --- src/main/java/im/conversations/android/xmpp/ConnectionPool.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/im/conversations/android/xmpp/ConnectionPool.java b/src/main/java/im/conversations/android/xmpp/ConnectionPool.java index b60c9b63f..84bd4ecf0 100644 --- a/src/main/java/im/conversations/android/xmpp/ConnectionPool.java +++ b/src/main/java/im/conversations/android/xmpp/ConnectionPool.java @@ -78,6 +78,7 @@ public class ConnectionPool { for (final Account account : added) { final XmppConnection connection = this.instantiate(context, account); connection.setOnStatusChangedListener(this::onStatusChanged); + reconnectAccount(connection); } for (final Account account : removed) { final Optional connectionOptional =