Merge remote-tracking branch 'megalodon_main/main'
# Conflicts: # mastodon/build.gradle
This commit is contained in:
@@ -92,7 +92,7 @@ public abstract class StatusDisplayItem{
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public String getContentID(){
|
||||
public String getContentStatusID(){
|
||||
if(parentFragment instanceof StatusListFragment slf){
|
||||
Status s=slf.getContentStatusByID(parentID);
|
||||
return s!=null ? s.id : parentID;
|
||||
|
||||
@@ -647,11 +647,8 @@ public class UiUtils {
|
||||
@Override
|
||||
public void onSuccess(Status result) {
|
||||
resultCallback.accept(result);
|
||||
CacheController cache=AccountSessionManager.get(accountID).getCacheController();
|
||||
cache.deleteStatus(s.id);
|
||||
E.post(new StatusDeletedEvent(s.id, accountID));
|
||||
if(status!=s){
|
||||
cache.deleteStatus(status.id);
|
||||
E.post(new StatusDeletedEvent(status.id, accountID));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user