remove notifications from closed accounts

This commit is contained in:
adbenitez
2023-03-27 14:49:36 -04:00
parent 1421cb41df
commit e8d398c693
@@ -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);
})