From cdb02411b179129ce162a1f054e63c902ea379b0 Mon Sep 17 00:00:00 2001 From: Mike Renoir <> Date: Tue, 2 Jan 2024 18:42:09 +0400 Subject: [PATCH] - isSecretChat method for PeerId --- submodules/TelegramCore/Sources/Utils/PeerUtils.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/submodules/TelegramCore/Sources/Utils/PeerUtils.swift b/submodules/TelegramCore/Sources/Utils/PeerUtils.swift index 5abb9df028..bd0238c832 100644 --- a/submodules/TelegramCore/Sources/Utils/PeerUtils.swift +++ b/submodules/TelegramCore/Sources/Utils/PeerUtils.swift @@ -433,4 +433,7 @@ public extension PeerId { } return false } + var isSecretChat: Bool { + return self.namespace == Namespaces.Peer.SecretChat + } }