reconnect account after adding to ConnectionPool

This commit is contained in:
Daniel Gultsch 2023-01-19 15:31:24 +01:00
parent 6983aedddc
commit da65960fd1
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -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<XmppConnection> connectionOptional =