forked from mirrors/linphone-iphone
Fix when conversationsListTmp.first is nil
This commit is contained in:
parent
d2d8c9cd8d
commit
ad58d80939
1 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue