mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 01:10:09 +00:00
Restrict forwards
This commit is contained in:
parent
235482fea1
commit
c7de651aad
@ -951,13 +951,15 @@ public final class ChatListSearchContainerNode: SearchDisplayControllerContentNo
|
|||||||
})))
|
})))
|
||||||
}
|
}
|
||||||
|
|
||||||
items.append(.action(ContextMenuActionItem(text: strongSelf.presentationData.strings.Conversation_ContextMenuForward, icon: { theme in generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Forward"), color: theme.contextMenu.primaryColor) }, action: { [weak self] c, _ in
|
if !message._asMessage().isCopyProtected() {
|
||||||
c.dismiss(completion: { [weak self] in
|
items.append(.action(ContextMenuActionItem(text: strongSelf.presentationData.strings.Conversation_ContextMenuForward, icon: { theme in generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Forward"), color: theme.contextMenu.primaryColor) }, action: { [weak self] c, _ in
|
||||||
if let strongSelf = self {
|
c.dismiss(completion: { [weak self] in
|
||||||
strongSelf.forwardMessages(messageIds: Set([message.id]))
|
if let strongSelf = self {
|
||||||
}
|
strongSelf.forwardMessages(messageIds: Set([message.id]))
|
||||||
})
|
}
|
||||||
})))
|
})
|
||||||
|
})))
|
||||||
|
}
|
||||||
items.append(.action(ContextMenuActionItem(text: strongSelf.presentationData.strings.SharedMedia_ViewInChat, icon: { theme in generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/GoToMessage"), color: theme.contextMenu.primaryColor) }, action: { [weak self] c, _ in
|
items.append(.action(ContextMenuActionItem(text: strongSelf.presentationData.strings.SharedMedia_ViewInChat, icon: { theme in generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/GoToMessage"), color: theme.contextMenu.primaryColor) }, action: { [weak self] c, _ in
|
||||||
c.dismiss(completion: { [weak self] in
|
c.dismiss(completion: { [weak self] in
|
||||||
self?.openMessage(EnginePeer(message.peers[message.id.peerId]!), message.id, false)
|
self?.openMessage(EnginePeer(message.peers[message.id.peerId]!), message.id, false)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user