From cf6e608384d1c3bd9bf3d0b5a8fb8ba136795280 Mon Sep 17 00:00:00 2001 From: Levitating Pineapple Date: Thu, 1 Aug 2024 18:59:00 +0300 Subject: [PATCH] cleanup --- apps/ios/Shared/Views/Helpers/NewItemThrottler.swift | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/ios/Shared/Views/Helpers/NewItemThrottler.swift b/apps/ios/Shared/Views/Helpers/NewItemThrottler.swift index 5699bda7b4..f2e86d8c0d 100644 --- a/apps/ios/Shared/Views/Helpers/NewItemThrottler.swift +++ b/apps/ios/Shared/Views/Helpers/NewItemThrottler.swift @@ -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() } }