2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Check appconfig start ref prefixes.

This commit is contained in:
John Preston
2024-11-29 17:24:22 +04:00
parent 747e417809
commit 89058c63c8
5 changed files with 33 additions and 19 deletions

View File

@@ -48,6 +48,15 @@ int AppConfig::stargiftConvertPeriodMax() const {
_account->mtp().isTestMode() ? 300 : (90 * 86400));
}
const std::vector<QString> &AppConfig::startRefPrefixes() {
if (_startRefPrefixes.empty()) {
_startRefPrefixes = get<std::vector<QString>>(
u"starref_start_param_prefixes"_q,
std::vector<QString>());
}
return _startRefPrefixes;
}
void AppConfig::refresh(bool force) {
if (_requestId || !_api) {
if (force) {