diff --git a/submodules/TelegramCore/Sources/Utils/PeerUtils.swift b/submodules/TelegramCore/Sources/Utils/PeerUtils.swift index bd0238c832..e51dc63acd 100644 --- a/submodules/TelegramCore/Sources/Utils/PeerUtils.swift +++ b/submodules/TelegramCore/Sources/Utils/PeerUtils.swift @@ -1,6 +1,8 @@ import Foundation import Postbox +public let anonymousSavedMessagesId: Int64 = 2666000 + public extension Peer { var debugDisplayTitle: String { switch self { @@ -427,7 +429,7 @@ public extension PeerId { var isAnonymousSavedMessages: Bool { if self.namespace == Namespaces.Peer.CloudUser { - if self.id._internalGetInt64Value() == 2666000 { + if self.id._internalGetInt64Value() == anonymousSavedMessagesId { return true } }