Fix found messages opening

This commit is contained in:
Ilya Laktyushin
2019-11-30 20:09:54 +04:00
parent 0ae8ea3936
commit 3154659541

View File

@@ -594,6 +594,8 @@ public final class ChatListSearchContainerNode: SearchDisplayControllerContentNo
} }
let openMessage: (Peer, MessageId) -> Void = { peer, messageId in let openMessage: (Peer, MessageId) -> Void = { peer, messageId in
originalOpenMessage(peer, messageId)
if peer.id.namespace != Namespaces.Peer.SecretChat { 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))])) addAppLogEvent(postbox: context.account.postbox, time: Date().timeIntervalSince1970, type: "search_global_open_message", peerId: peer.id, data: .dictionary(["msg_id": .number(Double(messageId.id))]))
} }