mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-23 01:00:04 +02:00
Fix notifications follow request not removed from cache
This commit is contained in:
parent
e94fd10d90
commit
7a3c34b749
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue