diff options
| author | levlam <levlam@telegram.org> | 2026-01-16 14:39:25 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-01-16 14:39:25 +0300 |
| commit | ab7023e2060c087fecc62a2696f065815b0b0c39 (patch) | |
| tree | aff9dca2f73468504ac41fe77cf306ba4d5ef360 | |
| parent | 88f352335e3fe689e5571be4a045109713c38153 (diff) | |
Support appearance/themes links.
| -rw-r--r-- | td/generate/scheme/td_api.tl | 10 | ||||
| -rw-r--r-- | td/telegram/LinkManager.cpp | 10 | ||||
| -rw-r--r-- | test/link.cpp | 1 |
3 files changed, 11 insertions, 10 deletions
diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index b5431accc..b4839af8a 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -8283,11 +8283,11 @@ reportStoryResultTextRequired option_id:bytes is_optional:Bool = ReportStoryResu //@class SettingsSection @description Describes a section of the application settings //@description The appearance section @subsection Subsection of the section if any; may be one of -//-"themes/edit", "themes/create", "wallpapers", "wallpapers/edit", "wallpapers/set", "wallpapers/choose-photo", -//-"your-color/profile", "your-color/profile/add-icons", "your-color/profile/use-gift", "your-color/profile/reset", -//-"your-color/name", "your-color/name/add-icons", "your-color/name/use-gift", "night-mode", "auto-night-mode", -//-"text-size", "text-size/use-system", "message-corners", "animations", "stickers-and-emoji", -//-"stickers-and-emoji/edit", "stickers-and-emoji/trending", "stickers-and-emoji/archived", +//-"themes", "themes/edit", "themes/create", "wallpapers", "wallpapers/edit", "wallpapers/set", +//-"wallpapers/choose-photo", "your-color/profile", "your-color/profile/add-icons", "your-color/profile/use-gift", +//-"your-color/profile/reset", "your-color/name", "your-color/name/add-icons", "your-color/name/use-gift", +//-"night-mode", "auto-night-mode", "text-size", "text-size/use-system", "message-corners", "animations", +//-"stickers-and-emoji", "stickers-and-emoji/edit", "stickers-and-emoji/trending", "stickers-and-emoji/archived", //-"stickers-and-emoji/archived/edit", "stickers-and-emoji/emoji", "stickers-and-emoji/emoji/edit", //-"stickers-and-emoji/emoji/archived", "stickers-and-emoji/emoji/archived/edit", "stickers-and-emoji/emoji/suggest", //-"stickers-and-emoji/emoji/quick-reaction", "stickers-and-emoji/emoji/quick-reaction/choose", diff --git a/td/telegram/LinkManager.cpp b/td/telegram/LinkManager.cpp index 23b982cd5..c16fe6589 100644 --- a/td/telegram/LinkManager.cpp +++ b/td/telegram/LinkManager.cpp @@ -172,11 +172,11 @@ static bool is_valid_story_album_id(Slice story_album_id) { static const vector<string> &get_appearance_settings_subsections() { static const vector<string> subsections{ - "themes/edit", "themes/create", "wallpapers", "wallpapers/edit", "wallpapers/set", "wallpapers/choose-photo", - "your-color/profile", "your-color/profile/add-icons", "your-color/profile/use-gift", "your-color/profile/reset", - "your-color/name", "your-color/name/add-icons", "your-color/name/use-gift", "night-mode", "auto-night-mode", - "text-size", "text-size/use-system", "message-corners", "animations", "stickers-and-emoji", - "stickers-and-emoji/edit", "stickers-and-emoji/trending", "stickers-and-emoji/archived", + "themes", "themes/edit", "themes/create", "wallpapers", "wallpapers/edit", "wallpapers/set", + "wallpapers/choose-photo", "your-color/profile", "your-color/profile/add-icons", "your-color/profile/use-gift", + "your-color/profile/reset", "your-color/name", "your-color/name/add-icons", "your-color/name/use-gift", + "night-mode", "auto-night-mode", "text-size", "text-size/use-system", "message-corners", "animations", + "stickers-and-emoji", "stickers-and-emoji/edit", "stickers-and-emoji/trending", "stickers-and-emoji/archived", "stickers-and-emoji/archived/edit", "stickers-and-emoji/emoji", "stickers-and-emoji/emoji/edit", "stickers-and-emoji/emoji/archived", "stickers-and-emoji/emoji/archived/edit", "stickers-and-emoji/emoji/suggest", "stickers-and-emoji/emoji/quick-reaction", "stickers-and-emoji/emoji/quick-reaction/choose", diff --git a/test/link.cpp b/test/link.cpp index 98549320c..5e3684730 100644 --- a/test/link.cpp +++ b/test/link.cpp @@ -1829,6 +1829,7 @@ TEST(Link, parse_internal_link_part4) { parse_internal_link("tg://settings/privacy/auto-delete/set-custom", privacy_and_security_settings("auto-delete/set-custom")); + parse_internal_link("tg://settings/appearance/themes", appearance("themes")); parse_internal_link("tg://settings/appearance/themes/edit", appearance("themes/edit")); parse_internal_link("tg://settings/appearance/app-icon", appearance("app-icon")); |
