mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Fix ComposeActivity not loading for new conversation
This commit is contained in:
@@ -56,8 +56,8 @@ class ComposeViewModel(threadId: Long) : QkViewModel<ComposeView, ComposeState>(
|
||||
|
||||
// Merges two potential conversation sources (threadId from constructor and contact selection) into a single
|
||||
// stream of conversations. If the conversation was deleted, notify the activity to shut down
|
||||
conversation = messageRepo.getConversationAsync(threadId)
|
||||
.asObservable<Conversation>()
|
||||
conversation = Observable.just(messageRepo.getConversation(threadId) ?: Conversation())
|
||||
.filter { conversation -> conversation.id != 0L }
|
||||
.filter { conversation -> conversation.isLoaded }
|
||||
.filter { conversation ->
|
||||
if (!conversation.isValid) {
|
||||
|
||||
Reference in New Issue
Block a user