Accidental change

pull/1487/head
fanchao 12 months ago
parent 1377e192a1
commit 580bf9ebb3

@ -96,6 +96,11 @@ class ConversationViewModel(
init { init {
viewModelScope.launch(Dispatchers.IO) { viewModelScope.launch(Dispatchers.IO) {
repository.recipientUpdateFlow(threadId) repository.recipientUpdateFlow(threadId)
.collect { recipient ->
if (recipient == null && _uiState.value.conversationExists) {
_uiState.update { it.copy(conversationExists = false) }
}
}
} }
} }

Loading…
Cancel
Save