From 315465954131197f33447b329a6aaa95462db0b6 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sat, 30 Nov 2019 20:09:54 +0400 Subject: [PATCH] Fix found messages opening --- submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift b/submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift index 7f325e7bb6..7cfc57e49c 100644 --- a/submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift +++ b/submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift @@ -594,6 +594,8 @@ public final class ChatListSearchContainerNode: SearchDisplayControllerContentNo } let openMessage: (Peer, MessageId) -> Void = { peer, messageId in + originalOpenMessage(peer, messageId) + if peer.id.namespace != Namespaces.Peer.SecretChat { addAppLogEvent(postbox: context.account.postbox, time: Date().timeIntervalSince1970, type: "search_global_open_message", peerId: peer.id, data: .dictionary(["msg_id": .number(Double(messageId.id))])) }