Skip to content

Commit ab7023e

Browse files
committed
Support appearance/themes links.
1 parent 88f3523 commit ab7023e

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

td/generate/scheme/td_api.tl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8283,11 +8283,11 @@ reportStoryResultTextRequired option_id:bytes is_optional:Bool = ReportStoryResu
82838283
//@class SettingsSection @description Describes a section of the application settings
82848284

82858285
//@description The appearance section @subsection Subsection of the section if any; may be one of
8286-
//-"themes/edit", "themes/create", "wallpapers", "wallpapers/edit", "wallpapers/set", "wallpapers/choose-photo",
8287-
//-"your-color/profile", "your-color/profile/add-icons", "your-color/profile/use-gift", "your-color/profile/reset",
8288-
//-"your-color/name", "your-color/name/add-icons", "your-color/name/use-gift", "night-mode", "auto-night-mode",
8289-
//-"text-size", "text-size/use-system", "message-corners", "animations", "stickers-and-emoji",
8290-
//-"stickers-and-emoji/edit", "stickers-and-emoji/trending", "stickers-and-emoji/archived",
8286+
//-"themes", "themes/edit", "themes/create", "wallpapers", "wallpapers/edit", "wallpapers/set",
8287+
//-"wallpapers/choose-photo", "your-color/profile", "your-color/profile/add-icons", "your-color/profile/use-gift",
8288+
//-"your-color/profile/reset", "your-color/name", "your-color/name/add-icons", "your-color/name/use-gift",
8289+
//-"night-mode", "auto-night-mode", "text-size", "text-size/use-system", "message-corners", "animations",
8290+
//-"stickers-and-emoji", "stickers-and-emoji/edit", "stickers-and-emoji/trending", "stickers-and-emoji/archived",
82918291
//-"stickers-and-emoji/archived/edit", "stickers-and-emoji/emoji", "stickers-and-emoji/emoji/edit",
82928292
//-"stickers-and-emoji/emoji/archived", "stickers-and-emoji/emoji/archived/edit", "stickers-and-emoji/emoji/suggest",
82938293
//-"stickers-and-emoji/emoji/quick-reaction", "stickers-and-emoji/emoji/quick-reaction/choose",

td/telegram/LinkManager.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ static bool is_valid_story_album_id(Slice story_album_id) {
172172

173173
static const vector<string> &get_appearance_settings_subsections() {
174174
static const vector<string> subsections{
175-
"themes/edit", "themes/create", "wallpapers", "wallpapers/edit", "wallpapers/set", "wallpapers/choose-photo",
176-
"your-color/profile", "your-color/profile/add-icons", "your-color/profile/use-gift", "your-color/profile/reset",
177-
"your-color/name", "your-color/name/add-icons", "your-color/name/use-gift", "night-mode", "auto-night-mode",
178-
"text-size", "text-size/use-system", "message-corners", "animations", "stickers-and-emoji",
179-
"stickers-and-emoji/edit", "stickers-and-emoji/trending", "stickers-and-emoji/archived",
175+
"themes", "themes/edit", "themes/create", "wallpapers", "wallpapers/edit", "wallpapers/set",
176+
"wallpapers/choose-photo", "your-color/profile", "your-color/profile/add-icons", "your-color/profile/use-gift",
177+
"your-color/profile/reset", "your-color/name", "your-color/name/add-icons", "your-color/name/use-gift",
178+
"night-mode", "auto-night-mode", "text-size", "text-size/use-system", "message-corners", "animations",
179+
"stickers-and-emoji", "stickers-and-emoji/edit", "stickers-and-emoji/trending", "stickers-and-emoji/archived",
180180
"stickers-and-emoji/archived/edit", "stickers-and-emoji/emoji", "stickers-and-emoji/emoji/edit",
181181
"stickers-and-emoji/emoji/archived", "stickers-and-emoji/emoji/archived/edit", "stickers-and-emoji/emoji/suggest",
182182
"stickers-and-emoji/emoji/quick-reaction", "stickers-and-emoji/emoji/quick-reaction/choose",

test/link.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,6 +1829,7 @@ TEST(Link, parse_internal_link_part4) {
18291829
parse_internal_link("tg://settings/privacy/auto-delete/set-custom",
18301830
privacy_and_security_settings("auto-delete/set-custom"));
18311831

1832+
parse_internal_link("tg://settings/appearance/themes", appearance("themes"));
18321833
parse_internal_link("tg://settings/appearance/themes/edit", appearance("themes/edit"));
18331834
parse_internal_link("tg://settings/appearance/app-icon", appearance("app-icon"));
18341835

0 commit comments

Comments
 (0)