Add intents settings to settings search registry

This commit is contained in:
Ilya Laktyushin
2020-07-02 02:40:52 +03:00
parent 8f87663668
commit 6351adf805
5 changed files with 2105 additions and 2099 deletions

View File

@@ -5640,3 +5640,5 @@ Any member of this group will be able to see messages in the channel.";
"Conversation.Unarchive" = "Unarchive";
"Conversation.UnarchiveDone" = "The chat was moved to your main list.";
"SettingsSearch.Synonyms.ChatSettings.IntentSettings" = "Siri Suggestions";

View File

@@ -627,7 +627,10 @@ private func dataSearchableItems(context: AccountContext) -> [SettingsSearchable
}),
SettingsSearchableItem(id: .data(14), title: strings.ChatSettings_OpenLinksIn, alternate: synonyms(strings.SettingsSearch_Synonyms_ChatSettings_OpenLinksIn), icon: icon, breadcrumbs: [strings.Settings_ChatSettings], present: { context, _, present in
present(.push, webBrowserSettingsController(context: context))
})
}),
SettingsSearchableItem(id: .data(15), title: strings.ChatSettings_IntentsSettings, alternate: synonyms(strings.SettingsSearch_Synonyms_ChatSettings_IntentsSettings), icon: icon, breadcrumbs: [strings.Settings_ChatSettings], present: { context, _, present in
present(.push, intentsSettingsController(context: context))
}),
]
}