From ab57c5983840a3076647d69f499d1f51692a8420 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 15 Sep 2019 12:23:56 +0200 Subject: [PATCH] clear notifications when deleting account --- .../eu/siacs/conversations/services/XmppConnectionService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index d40a3ccd5..2e90422fa 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -2190,6 +2190,7 @@ public class XmppConnectionService extends Service { leaveMuc(conversation); } conversations.remove(conversation); + mNotificationService.clear(conversation); } } if (account.getXmppConnection() != null) { @@ -2204,7 +2205,7 @@ public class XmppConnectionService extends Service { this.accounts.remove(account); this.mRosterSyncTaskManager.clear(account); updateAccountUi(); - getNotificationService().updateErrorNotification(); + mNotificationService.updateErrorNotification(); syncEnabledAccountSetting(); toggleForegroundService(); }