Merge branch 'feature/animate-buttons'

This commit is contained in:
sk 2022-12-20 15:19:02 +01:00
commit ae6afab01b
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ public class StatusInteractionController{
SetStatusReblogged req=(SetStatusReblogged) new SetStatusReblogged(status.id, reblogged)
.setCallback(new Callback<>(){
@Override
public void onSuccess(Status result){
public void onSuccess(Status reblog){
Status result = reblog.getContentStatus();
runningReblogRequests.remove(status.id);
result.reblogsCount = Math.max(0, status.reblogsCount) + (reblogged ? 1 : -1);
cb.accept(result);