mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix QR login to different dc.
This commit is contained in:
parent
07ceee79ff
commit
ff6df75adc
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue