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

Don't change dc after qr request / phone submit.

This commit is contained in:
John Preston
2020-06-26 15:28:06 +04:00
parent 793e8c102e
commit 6960e4808a
7 changed files with 31 additions and 9 deletions

View File

@@ -417,8 +417,9 @@ void Instance::Private::setGoodProxyDomain(
}
void Instance::Private::suggestMainDcId(DcId mainDcId) {
if (_mainDcIdForced) return;
setMainDcId(mainDcId);
if (!_mainDcIdForced) {
setMainDcId(mainDcId);
}
}
void Instance::Private::setMainDcId(DcId mainDcId) {