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

Respect appconfig starref restrictions.

This commit is contained in:
John Preston
2024-11-29 17:35:46 +04:00
parent 89058c63c8
commit a97880132a
10 changed files with 56 additions and 12 deletions

View File

@@ -57,6 +57,14 @@ const std::vector<QString> &AppConfig::startRefPrefixes() {
return _startRefPrefixes;
}
bool AppConfig::starrefSetupAllowed() const {
return get<bool>(u"starref_program_allowed"_q, false);
}
bool AppConfig::starrefJoinAllowed() const {
return get<bool>(u"starref_connect_allowed"_q, false);
}
void AppConfig::refresh(bool force) {
if (_requestId || !_api) {
if (force) {