conversation: update when conversation ready
This patch update temporary conversation after receiving
signal conversationReady.
Change-Id: I2502418a3011af1754123db82bb2a240d955ca47
diff --git a/Ring/Ring/Features/Conversations/SmartList/SmartlistViewModel.swift b/Ring/Ring/Features/Conversations/SmartList/SmartlistViewModel.swift
index 300d935..d236fd4 100644
--- a/Ring/Ring/Features/Conversations/SmartList/SmartlistViewModel.swift
+++ b/Ring/Ring/Features/Conversations/SmartList/SmartlistViewModel.swift
@@ -157,6 +157,7 @@
conversationViewModel?.conversation.accept(conversationModel)
} else if let contactFound = self.contactFoundConversation.value, contactFound.conversation.value == conversationModel {
conversationViewModel = contactFound
+ conversationViewModel?.conversation = BehaviorRelay(value: conversationModel)
self.conversationViewModels.append(contactFound)
} else {
conversationViewModel = ConversationViewModel(with: self.injectionBag)