mirror of https://github.com/procxx/kepka.git
Fix QR login to different dc.
This commit is contained in:
parent
07ceee79ff
commit
ff6df75adc
|
@ -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…
Reference in New Issue