mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various Improvements
This commit is contained in:
@@ -577,6 +577,15 @@ func contextMenuForChatPresentationInterfaceState(chatPresentationInterfaceState
|
||||
}
|
||||
f(.default)
|
||||
})))
|
||||
|
||||
if isSpeakSelectionEnabled() {
|
||||
actions.append(.action(ContextMenuActionItem(text: chatPresentationInterfaceState.strings.Conversation_ContextMenuSpeak, icon: { theme in
|
||||
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Message"), color: theme.actionSheet.primaryTextColor)
|
||||
}, action: { _, f in
|
||||
controllerInteraction.performTextSelectionAction(0, NSAttributedString(string: message.text), .speak)
|
||||
f(.default)
|
||||
})))
|
||||
}
|
||||
}
|
||||
if resourceAvailable, !message.containsSecretMedia {
|
||||
var mediaReference: AnyMediaReference?
|
||||
|
||||
Reference in New Issue
Block a user