forked from upstream-mirrors/quik
Update variable name
This commit is contained in:
@@ -291,7 +291,7 @@ class ComposeViewModel(intent: Intent) : QkViewModel<ComposeView, ComposeState>(
|
|||||||
.subscribe()
|
.subscribe()
|
||||||
|
|
||||||
// Mark the conversation read, if in foreground
|
// Mark the conversation read, if in foreground
|
||||||
Observables.combineLatest(messages, view.activityVisibleIntent, { _, b -> b })
|
Observables.combineLatest(messages, view.activityVisibleIntent, { _, visible -> visible })
|
||||||
.withLatestFrom(conversation, { visible, conversation ->
|
.withLatestFrom(conversation, { visible, conversation ->
|
||||||
if (visible && conversation.isValid) markRead.execute(conversation.id)
|
if (visible && conversation.isValid) markRead.execute(conversation.id)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user