Add lifecycle observation to group replies state observer.

This commit is contained in:
Alex Hart
2022-10-17 13:04:15 -03:00
parent b8665e41e8
commit 87c024e968

View File

@@ -186,7 +186,7 @@ class StoryGroupReplyFragment :
var firstSubmit = true
viewModel.state
lifecycleDisposable += viewModel.state
.observeOn(AndroidSchedulers.mainThread())
.subscribeBy { state ->
if (markReadHelper == null && state.threadId > 0L) {