forked from upstream-mirrors/quik
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
|
// 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
|
// stream of conversations. If the conversation was deleted, notify the activity to shut down
|
||||||
conversation = messageRepo.getConversationAsync(threadId)
|
conversation = Observable.just(messageRepo.getConversation(threadId) ?: Conversation())
|
||||||
.asObservable<Conversation>()
|
.filter { conversation -> conversation.id != 0L }
|
||||||
.filter { conversation -> conversation.isLoaded }
|
.filter { conversation -> conversation.isLoaded }
|
||||||
.filter { conversation ->
|
.filter { conversation ->
|
||||||
if (!conversation.isValid) {
|
if (!conversation.isValid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user