This commit is contained in:
Ilya Laktyushin 2025-07-24 05:08:19 +02:00
parent 5c2d7a642b
commit 1cebd4ac6d

View File

@ -1297,7 +1297,7 @@ public final class PeerInfoGiftsPaneNode: ASDisplayNode, PeerInfoPaneNode, UIScr
}
}
if case let .collection(id) = self.currentCollection {
if canManage, case let .collection(id) = self.currentCollection {
items.append(.action(ContextMenuActionItem(text: strings.PeerInfo_Gifts_Context_RemoveFromCollection, textColor: .destructive, textLayout: .twoLinesMax, icon: { theme in generateTintedImage(image: UIImage(bundleImageName: "Peer Info/Gifts/RemoveFromCollection"), color: theme.contextMenu.destructiveColor) }, action: { [weak self] c, f in
f(.default)