From 5f1caf691921d47a1bef3f0c13c0f99e39c0653b Mon Sep 17 00:00:00 2001 From: Sergey Akentev Date: Mon, 1 Apr 2024 20:39:05 +0300 Subject: [PATCH] Fix conflicting check for Archive Chat context item --- submodules/ChatListUI/Sources/ChatContextMenus.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/ChatListUI/Sources/ChatContextMenus.swift b/submodules/ChatListUI/Sources/ChatContextMenus.swift index 45733793938..f98a093e20a 100644 --- a/submodules/ChatListUI/Sources/ChatContextMenus.swift +++ b/submodules/ChatListUI/Sources/ChatContextMenus.swift @@ -350,7 +350,7 @@ func chatContextMenuItems(context: AccountContext, peerId: PeerId, promoInfo: Ch }))) } - let archiveEnabled = !isSavedMessages && peerId != PeerId(namespace: Namespaces.Peer.CloudUser, id: PeerId.Id._internalFromInt64Value(777000)) && peerId == context.account.peerId + let archiveEnabled = !isSavedMessages && peerId != PeerId(namespace: Namespaces.Peer.CloudUser, id: PeerId.Id._internalFromInt64Value(777000)) if let group = peerGroup { if archiveEnabled { let isArchived = group == .archive