mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue