diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 30a1a05fc0..650c26784f 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -3967,6 +3967,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "ayu_MessageSavingSaveMediaInPrivateChannels" = "…in private channels"; "ayu_MessageSavingSaveMediaInPublicGroups" = "…in public groups"; "ayu_MessageSavingSaveMediaInPrivateGroups" = "…in private groups"; +"ayu_MaximumMediaSizeCellular" = "Media size limit (cellular data)"; +"ayu_MaximumMediaSizeWiFi" = "Media size limit (WiFi)"; "ayu_MessageSavingOtherHeader" = "Other"; "ayu_MessageSavingSaveFormatting" = "Save formatting"; "ayu_MessageSavingSaveReactions" = "Save reactions"; @@ -4021,6 +4023,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "ayu_WALMode" = "Enable WAL mode"; "ayu_ClearAyuDatabase" = "Clear Ayu Database"; "ayu_ClearAyuDatabaseNotification" = "AyuGram database cleared"; +"ayu_ClearAyuAttachments" = "Clear Ayu Attachments"; +"ayu_ClearAyuAttachmentsNotification" = "AyuGram attachments folder cleared"; "ayu_EraseLocalDatabase" = "Erase Local Database"; "ayu_ConfirmationsTitle" = "Confirmations"; "ayu_StickerConfirmation" = "Confirmation when sending stickers"; @@ -4052,4 +4056,5 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "ayu_ContextCopyID" = "Copy ID"; "ayu_IDCopiedToast" = "ID copied to clipboard."; "ayu_ContextHideMessage" = "Hide"; +"ayu_ContextCopyCallbackData" = "Copy Callback Data"; "ayu_SettingsWatermark" = "AyuGram developed and maintained by Radolyn Labs."; diff --git a/Telegram/SourceFiles/history/history_item_components.cpp b/Telegram/SourceFiles/history/history_item_components.cpp index 05289283e9..3497ae6887 100644 --- a/Telegram/SourceFiles/history/history_item_components.cpp +++ b/Telegram/SourceFiles/history/history_item_components.cpp @@ -646,7 +646,14 @@ QString ReplyMarkupClickHandler::copyToClipboardText() const { QString ReplyMarkupClickHandler::copyToClipboardContextItemText() const { const auto button = getUrlButton(); - return button ? tr::lng_context_copy_link(tr::now) : QString(); + if (button) { + using Type = HistoryMessageMarkupButton::Type; + if (button->type == Type::Callback) { + return tr::ayu_ContextCopyCallbackData(tr::now); + } + return tr::lng_context_copy_link(tr::now); + } + return QString(); } // Finds the corresponding button in the items markup struct. @@ -661,7 +668,7 @@ auto ReplyMarkupClickHandler::getUrlButton() const -> const HistoryMessageMarkupButton* { if (const auto button = getButton()) { using Type = HistoryMessageMarkupButton::Type; - if (button->type == Type::Url || button->type == Type::Auth) { + if (button->type == Type::Url || button->type == Type::Auth || button->type == Type::Callback) { return button; } }