Remove all PhoneAccount when an Account is removed
This commit is contained in:
parent
af12ac91d0
commit
7671d5e42e
|
@ -2468,6 +2468,11 @@ public class XmppConnectionService extends Service {
|
|||
mNotificationService.clear(conversation);
|
||||
}
|
||||
}
|
||||
new Thread(() -> {
|
||||
for (final Contact contact : account.getRoster().getContacts()) {
|
||||
contact.unregisterAsPhoneAccount(this);
|
||||
}
|
||||
}).start();
|
||||
if (account.getXmppConnection() != null) {
|
||||
new Thread(() -> disconnect(account, !connected)).start();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue