ios: fix view model update not on main thread
This commit is contained in:
parent
c3ffc2abb8
commit
63dd6e36b3
@ -1518,7 +1518,9 @@ func processReceivedMsg(_ res: ChatResponse) async {
|
|||||||
await chatItemSimpleUpdate(user, aChatItem)
|
await chatItemSimpleUpdate(user, aChatItem)
|
||||||
Task { cleanupFile(aChatItem) }
|
Task { cleanupFile(aChatItem) }
|
||||||
case let .callInvitation(invitation):
|
case let .callInvitation(invitation):
|
||||||
m.callInvitations[invitation.contact.id] = invitation
|
await MainActor.run {
|
||||||
|
m.callInvitations[invitation.contact.id] = invitation
|
||||||
|
}
|
||||||
activateCall(invitation)
|
activateCall(invitation)
|
||||||
case let .callOffer(_, contact, callType, offer, sharedKey, _):
|
case let .callOffer(_, contact, callType, offer, sharedKey, _):
|
||||||
await withCall(contact) { call in
|
await withCall(contact) { call in
|
||||||
|
Loading…
Reference in New Issue
Block a user