2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-29 05:29:23 +00:00

Fix QR login to different dc.

This commit is contained in:
John Preston 2019-12-13 18:11:31 +03:00
parent 07ceee79ff
commit ff6df75adc

View File

@ -341,6 +341,7 @@ void QrWidget::showToken(const QByteArray &token) {
void QrWidget::importTo(MTP::DcId dcId, const QByteArray &token) { void QrWidget::importTo(MTP::DcId dcId, const QByteArray &token) {
Expects(_requestId != 0); Expects(_requestId != 0);
_api.instance()->setMainDcId(dcId);
_requestId = _api.request(MTPauth_ImportLoginToken( _requestId = _api.request(MTPauth_ImportLoginToken(
MTP_bytes(token) MTP_bytes(token)
)).done([=](const MTPauth_LoginToken &result) { )).done([=](const MTPauth_LoginToken &result) {