From 7a3c34b74962267eff51f99a02648962532f1a89 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 25 Dec 2022 16:21:26 +0100 Subject: [PATCH] Fix notifications follow request not removed from cache --- .../app/fedilab/android/viewmodel/mastodon/AccountsVM.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 cd55af29..fbf37746 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 @@ -1347,7 +1347,7 @@ public class AccountsVM extends AndroidViewModel { if (acceptFollowResponse.isSuccessful()) { relationShip = acceptFollowResponse.body(); } - new StatusCache(getApplication().getApplicationContext()).deleteStatus(instance, id); + new StatusCache(getApplication().getApplicationContext()).deleteNotifications(MainActivity.currentUserID, instance); } catch (Exception e) { e.printStackTrace(); } @@ -1378,7 +1378,7 @@ public class AccountsVM extends AndroidViewModel { if (rejectFollowResponse.isSuccessful()) { relationShip = rejectFollowResponse.body(); } - new StatusCache(getApplication().getApplicationContext()).deleteStatus(instance, id); + new StatusCache(getApplication().getApplicationContext()).deleteNotifications(MainActivity.currentUserID, instance); } catch (Exception e) { e.printStackTrace(); }