mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-25 20:44:38 +00:00
cleanup
This commit is contained in:
@@ -30,12 +30,7 @@ class NewItemThrottler {
|
||||
}
|
||||
|
||||
func receive(_ cItem: ChatItem, for cInfo: ChatInfo) {
|
||||
// Messages sent to the current chat are updated directly
|
||||
if ChatModel.shared.chatId == cInfo.id {
|
||||
ChatModel.shared.addChatItem(cInfo, cItem)
|
||||
} else {
|
||||
DispatchQueue.main.async { self.accumulated.append((cInfo, cItem)) }
|
||||
subject.send()
|
||||
}
|
||||
DispatchQueue.main.async { self.accumulated.append((cInfo, cItem)) }
|
||||
subject.send()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user