diff --git a/unstoppable-ios-app/domains-manager-ios/Modules/Messaging/Chat/ChatView/ChatViewModel.swift b/unstoppable-ios-app/domains-manager-ios/Modules/Messaging/Chat/ChatView/ChatViewModel.swift index 4df0eabf1..fba047f00 100644 --- a/unstoppable-ios-app/domains-manager-ios/Modules/Messaging/Chat/ChatView/ChatViewModel.swift +++ b/unstoppable-ios-app/domains-manager-ios/Modules/Messaging/Chat/ChatView/ChatViewModel.swift @@ -550,7 +550,6 @@ private extension ChatViewModel { for message in messages { var message = message - message.reactions = Array(messagesToReactions[message.id] ?? []) await message.prepareToDisplay() if let i = self.messages.firstIndex(where: { $0.id == message.id }) { self.messages[i] = message @@ -1142,7 +1141,7 @@ extension ChatViewModel: MessagingServiceListener { if case .reaction(let info) = updatedMessage.type { let currentReactions = messagesToReactions[info.messageId] ?? [] - let filteredReactions = currentReactions.filter({ $0.messageId == updatedMessage.id }) + let filteredReactions = currentReactions.filter({ $0.messageId != updatedMessage.id }) messagesToReactions[info.messageId] = filteredReactions } }