From c5750f98259ad941e167d0a93252a7405fb5fda6 Mon Sep 17 00:00:00 2001 From: Woit Date: Fri, 29 Nov 2024 16:07:28 +0100 Subject: [PATCH] wip --- Monal/another.im/XMPP/MonalXmppWrapper.swift | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Monal/another.im/XMPP/MonalXmppWrapper.swift b/Monal/another.im/XMPP/MonalXmppWrapper.swift index 11c7948..133d511 100644 --- a/Monal/another.im/XMPP/MonalXmppWrapper.swift +++ b/Monal/another.im/XMPP/MonalXmppWrapper.swift @@ -151,9 +151,6 @@ private extension MonalXmppWrapper { self?.refreshChats() } notificationObservers.append(contentsOf: [contactRefresh, contactRemove]) - - // For chats - // ??? } func refreshAccounts() { @@ -289,9 +286,7 @@ private extension MonalChatWrapper { return Message(message) } .sorted { $0.timestamp > $1.timestamp } - DispatchQueue.main.async { [weak self] in - self?.messages = messages - } + self.messages = messages } func toggleOmemo(_ new: Bool) {