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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user