diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 0d7f22776..8b23e079a 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -4845,6 +4845,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "ayu_EditsHistoryMenuText" = "History"; "ayu_PeekOnlineMenuText" = "Peek Online"; "ayu_ClearDeletedMenuText" = "Clear Deleted"; +"ayu_ViewDeletedMenuText" = "View Deleted"; "ayu_ViewFiltersMenuText" = "View Filters"; "ayu_PeekOnlineSuccess" = "Peeked via"; "ayu_OneViewTTL" = "one view"; @@ -4883,6 +4884,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "ayu_MessageShotThemeDefault" = "Default"; "ayu_MessageShotThemeSelectTitle" = "Select message theme"; "ayu_MessageShotThemeApply" = "Apply"; +"ayu_MessageShotBackground" = "Background"; +"ayu_MessageShotBackgroundSelected" = "Selected"; "ayu_MessageShotShowDate" = "Show date"; "ayu_MessageShotShowReactions" = "Show reactions"; "ayu_MessageShotShowColorfulReplies" = "Show colorful replies"; @@ -4907,6 +4910,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "ayu_IDCopiedToast" = "ID copied to clipboard."; "ayu_ContextHideMessage" = "Hide"; "ayu_ContextCopyCallbackData" = "Copy Callback Data"; +"ayu_RegisterURLScheme" = "Register URL scheme"; "ayu_LocalPremiumNotice" = "You're using **local** Telegram Premium.\nIt **won't** give you any benefits, except translator.\n**Enjoy the star near your nickname!**"; "ayu_SettingsWatermark" = "AyuGram developed and maintained by Radolyn Labs."; "ayu_ConfirmationSticker" = "Do you want to send this sticker?"; diff --git a/Telegram/SourceFiles/settings/settings_common_session.cpp b/Telegram/SourceFiles/settings/settings_common_session.cpp index ed487b659..56c976e05 100644 --- a/Telegram/SourceFiles/settings/settings_common_session.cpp +++ b/Telegram/SourceFiles/settings/settings_common_session.cpp @@ -61,6 +61,10 @@ void FillMenu( [=] { api->cloudPassword().clearUnconfirmedPassword(); }, &st::menuIconCancel); } else if (type == Ayu::Id()) { + addAction( + tr::ayu_RegisterURLScheme(tr::now), + [=] { Core::Application::RegisterUrlScheme(); }, + &st::menuIconLinks); addAction( tr::lng_restart_button(tr::now), [=] { Core::Restart(); },