mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix gift reorder option availability
This commit is contained in:
parent
fc14d83988
commit
acb25b0a16
@ -11118,7 +11118,7 @@ final class PeerInfoScreenNode: ViewControllerTracingNode, PeerInfoScreenNodePro
|
|||||||
giftsContext?.updateSorting(sorting == .date ? .value : .date)
|
giftsContext?.updateSorting(sorting == .date ? .value : .date)
|
||||||
})))
|
})))
|
||||||
|
|
||||||
if hasPinnedGifts {
|
if hasPinnedGifts && hasVisibility {
|
||||||
items.append(.action(ContextMenuActionItem(text: strings.PeerInfo_Gifts_Reorder, icon: { theme in
|
items.append(.action(ContextMenuActionItem(text: strings.PeerInfo_Gifts_Reorder, icon: { theme in
|
||||||
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/ReorderItems"), color: theme.contextMenu.primaryColor)
|
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/ReorderItems"), color: theme.contextMenu.primaryColor)
|
||||||
}, action: { _, f in
|
}, action: { _, f in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user