From a5416abb21ac7007cb6e634c4ac96a06ec94da3f Mon Sep 17 00:00:00 2001 From: Levi Bard Date: Fri, 3 Apr 2020 19:04:06 +0200 Subject: [PATCH] Add missing error handler for mute conversation invocation (#1746) --- .../main/java/com/keylesspalace/tusky/fragment/SFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/SFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/SFragment.java index 5b475a04..935a02e7 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/SFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/SFragment.java @@ -318,6 +318,7 @@ public abstract class SFragment extends BaseFragment implements Injectable { } case R.id.status_mute_conversation: { timelineCases.muteConversation(status, status.getMuted() == null || !status.getMuted()) + .onErrorReturnItem(status) .observeOn(AndroidSchedulers.mainThread()) .as(autoDisposable(from(this, Lifecycle.Event.ON_DESTROY))) .subscribe();