mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Initialize ConversationModel in the main thread
This commit is contained in:
parent
f85e7772c8
commit
97eec83915
1 changed files with 2 additions and 2 deletions
|
|
@ -53,9 +53,9 @@ class ConversationsListViewModel: ObservableObject {
|
|||
|
||||
chatRooms.forEach { chatRoom in
|
||||
if filter.isEmpty {
|
||||
let model = ConversationModel(chatRoom: chatRoom)
|
||||
self.conversationsListTmp.append(model)
|
||||
DispatchQueue.main.async {
|
||||
let model = ConversationModel(chatRoom: chatRoom)
|
||||
self.conversationsListTmp.append(model)
|
||||
self.conversationsList.append(model)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue