kopia lustrzana https://github.com/ryukoposting/Signal-Android
Add lifecycle observation to group replies state observer.
rodzic
b8665e41e8
commit
87c024e968
|
@ -186,7 +186,7 @@ class StoryGroupReplyFragment :
|
||||||
|
|
||||||
var firstSubmit = true
|
var firstSubmit = true
|
||||||
|
|
||||||
viewModel.state
|
lifecycleDisposable += viewModel.state
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribeBy { state ->
|
.subscribeBy { state ->
|
||||||
if (markReadHelper == null && state.threadId > 0L) {
|
if (markReadHelper == null && state.threadId > 0L) {
|
||||||
|
|
Ładowanie…
Reference in New Issue