Fix when conversationsListTmp.first is nil

This commit is contained in:
Benoit Martins 2024-05-07 17:47:32 +02:00
parent d2d8c9cd8d
commit ad58d80939

View file

@ -65,7 +65,9 @@ class ConversationsListViewModel: ObservableObject {
}
DispatchQueue.main.async {
self.conversationsList[0] = conversationsListTmp.first!
if conversationsListTmp.first != nil {
self.conversationsList[0] = conversationsListTmp.first!
}
}
} else {
DispatchQueue.main.async {