forked from upstream-mirrors/quik
Fix crash on loading conversation
The switchMap was causing a crash because it was trying to use conversation as an observable, even though it is not. (caused by c3df5f231f) There is no need for this code, because the whole function is now an observable.
This commit is contained in:
@@ -181,7 +181,6 @@ class ComposeViewModel @Inject constructor(
|
||||
.filter { conversations -> conversations.isLoaded }
|
||||
.mapNotNull { conversationRepo.getConversation(addresses) }
|
||||
.doOnNext { newState { copy(loading = false) } }
|
||||
.switchMap { conversation -> conversation.asObservable() }
|
||||
}
|
||||
|
||||
// Merges two potential conversation sources (constructor threadId and contact selection)
|
||||
|
||||
Reference in New Issue
Block a user