From 8307cb8e756d092322ecfef3f5e8d0d25687617f Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 27 Nov 2022 16:52:26 +0100 Subject: [PATCH] Remove cache messages when muting --- .../java/app/fedilab/android/viewmodel/mastodon/AccountsVM.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/app/fedilab/android/viewmodel/mastodon/AccountsVM.java b/app/src/main/java/app/fedilab/android/viewmodel/mastodon/AccountsVM.java index f3ba0615..f56a120b 100644 --- a/app/src/main/java/app/fedilab/android/viewmodel/mastodon/AccountsVM.java +++ b/app/src/main/java/app/fedilab/android/viewmodel/mastodon/AccountsVM.java @@ -703,6 +703,8 @@ public class AccountsVM extends AndroidViewModel { Response muteResponse = muteCall.execute(); if (muteResponse.isSuccessful()) { relationShip = muteResponse.body(); + sendAction(getApplication().getApplicationContext(), Helper.ARG_DELETE_ALL_FOR_ACCOUNT_ID, null, id); + new StatusCache(getApplication().getApplicationContext()).deleteStatusForTargetedAccount(MainActivity.currentInstance, MainActivity.currentUserID, id); } } catch (Exception e) { e.printStackTrace();