Add missing error handler for mute conversation invocation (#1746)

This commit is contained in:
Levi Bard 2020-04-03 19:04:06 +02:00 committed by GitHub
parent 68f34152dc
commit a5416abb21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -318,6 +318,7 @@ public abstract class SFragment extends BaseFragment implements Injectable {
} }
case R.id.status_mute_conversation: { case R.id.status_mute_conversation: {
timelineCases.muteConversation(status, status.getMuted() == null || !status.getMuted()) timelineCases.muteConversation(status, status.getMuted() == null || !status.getMuted())
.onErrorReturnItem(status)
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.as(autoDisposable(from(this, Lifecycle.Event.ON_DESTROY))) .as(autoDisposable(from(this, Lifecycle.Event.ON_DESTROY)))
.subscribe(); .subscribe();