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

@@ -233,6 +233,12 @@ public class CacheController{
});
}
public void deleteStatus(String id){
runOnDbThread((db)->{
db.delete("home_timeline", "`id`=?", new String[]{id});
});
}
public void clearRecentSearches(){
runOnDbThread((db)->db.delete("recent_searches", null, null));
}