This commit is contained in:
Woit 2024-11-29 16:07:28 +01:00
parent 340bb5a1b4
commit c5750f9825

View file

@ -151,9 +151,6 @@ private extension MonalXmppWrapper {
self?.refreshChats() self?.refreshChats()
} }
notificationObservers.append(contentsOf: [contactRefresh, contactRemove]) notificationObservers.append(contentsOf: [contactRefresh, contactRemove])
// For chats
// ???
} }
func refreshAccounts() { func refreshAccounts() {
@ -289,9 +286,7 @@ private extension MonalChatWrapper {
return Message(message) return Message(message)
} }
.sorted { $0.timestamp > $1.timestamp } .sorted { $0.timestamp > $1.timestamp }
DispatchQueue.main.async { [weak self] in self.messages = messages
self?.messages = messages
}
} }
func toggleOmemo(_ new: Bool) { func toggleOmemo(_ new: Bool) {