Accidental change

This commit is contained in:
fanchao 2024-05-17 14:07:52 +10:00
parent 1377e192a1
commit 580bf9ebb3

View File

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