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
1 changed files with 1 additions and 0 deletions

View File

@ -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();