Commit d7781045 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

fix: use main thread for UI

Change-Id: If067b3f6bc2e0746568f1da8e35aa22623c7cb72
parent 14b2b154
......@@ -129,10 +129,12 @@ class ConversationsManager: MessagesAdapterDelegate {
guard let content = message[textPlainMIMEType] else {
return
}
self.handleNewMessage(from: senderAccount,
to: receiverAccountId,
message: content,
peerName: nil)
DispatchQueue.main.async { [unowned self] in
self.handleNewMessage(from: senderAccount,
to: receiverAccountId,
message: content,
peerName: nil)
}
}
func handleNewMessage(from peerUri: String, to accountId: String, message content: String, peerName: String?) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment