Hide Speak for non-captioned media

This commit is contained in:
Ilya Laktyushin 2021-02-19 15:35:11 +04:00
parent b1ef3ba22d
commit f0c665b23e

View File

@ -590,7 +590,7 @@ func contextMenuForChatPresentationInterfaceState(chatPresentationInterfaceState
f(.default)
})))
if isSpeakSelectionEnabled() {
if isSpeakSelectionEnabled() && !message.text.isEmpty {
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