From e8d398c693d8bc08fe307b2325f85add0b741531 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Mon, 27 Mar 2023 14:49:36 -0400 Subject: [PATCH] remove notifications from closed accounts --- .../securesms/accounts/AccountSelectionListFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java b/src/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java index 1f8dd2c1f..1ad3161cc 100644 --- a/src/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java +++ b/src/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java @@ -90,6 +90,7 @@ public class AccountSelectionListFragment extends DialogFragment .setMessage(R.string.forget_login_confirmation_desktop) .setNegativeButton(R.string.cancel, (dialog, which) -> AccountManager.getInstance().showSwitchAccountMenu(activity)) .setPositiveButton(R.string.ok, (dialog2, which2) -> { + DcHelper.getNotificationCenter(activity).removeAllNotifiations(accountId); accounts.removeAccount(accountId); AccountManager.getInstance().showSwitchAccountMenu(activity); })