mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 17:30:12 +00:00
Fix menu
This commit is contained in:
parent
9c47496253
commit
0c9b15b181
@ -3859,29 +3859,31 @@ public final class PeerInfoStoryPaneNode: ASDisplayNode, PeerInfoPaneNode, ASScr
|
|||||||
})))
|
})))
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO:localize
|
if self.canManageStories {
|
||||||
items.append(.action(ContextMenuActionItem(text: "Rename Album", icon: { theme in generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Edit"), color: theme.contextMenu.primaryColor) }, action: { [weak self] _, f in
|
//TODO:localize
|
||||||
guard let self else {
|
items.append(.action(ContextMenuActionItem(text: "Rename Album", icon: { theme in generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Edit"), color: theme.contextMenu.primaryColor) }, action: { [weak self] _, f in
|
||||||
f(.default)
|
guard let self else {
|
||||||
return
|
f(.default)
|
||||||
}
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
f(.dismissWithoutContent)
|
||||||
|
|
||||||
|
self.presentRenameStoryFolder(id: folder.id, title: folder.title)
|
||||||
|
})))
|
||||||
|
|
||||||
f(.dismissWithoutContent)
|
//TODO:localize
|
||||||
|
items.append(.action(ContextMenuActionItem(text: "Share", icon: { theme in generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Forward"), color: theme.contextMenu.primaryColor) }, action: { [weak self] _, f in
|
||||||
self.presentRenameStoryFolder(id: folder.id, title: folder.title)
|
guard let self else {
|
||||||
})))
|
f(.default)
|
||||||
|
return
|
||||||
//TODO:localize
|
}
|
||||||
items.append(.action(ContextMenuActionItem(text: "Share", icon: { theme in generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Forward"), color: theme.contextMenu.primaryColor) }, action: { [weak self] _, f in
|
|
||||||
guard let self else {
|
f(.dismissWithoutContent)
|
||||||
f(.default)
|
|
||||||
return
|
self.shareFolder(id: folder.id)
|
||||||
}
|
})))
|
||||||
|
}
|
||||||
f(.dismissWithoutContent)
|
|
||||||
|
|
||||||
self.shareFolder(id: folder.id)
|
|
||||||
})))
|
|
||||||
|
|
||||||
if self.canManageStories {
|
if self.canManageStories {
|
||||||
//TODO:localize
|
//TODO:localize
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user