diff --git a/Telegram/SourceFiles/intro/intro_qr.cpp b/Telegram/SourceFiles/intro/intro_qr.cpp index 088efa880..e1d56f02c 100644 --- a/Telegram/SourceFiles/intro/intro_qr.cpp +++ b/Telegram/SourceFiles/intro/intro_qr.cpp @@ -341,6 +341,7 @@ void QrWidget::showToken(const QByteArray &token) { void QrWidget::importTo(MTP::DcId dcId, const QByteArray &token) { Expects(_requestId != 0); + _api.instance()->setMainDcId(dcId); _requestId = _api.request(MTPauth_ImportLoginToken( MTP_bytes(token) )).done([=](const MTPauth_LoginToken &result) {