Delete statuses from cache and fix auto-refresh when posting

This commit is contained in:
Grishka
2022-05-13 17:57:41 +03:00
parent 63957250c5
commit cb25632691
4 changed files with 8 additions and 2 deletions

View File

@@ -336,6 +336,7 @@ public class UiUtils{
@Override
public void onSuccess(Status result){
resultCallback.accept(result);
AccountSessionManager.getInstance().getAccount(accountID).getCacheController().deleteStatus(status.id);
E.post(new StatusDeletedEvent(status.id, accountID));
}