mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
MTP global state moved to MTP::Instance class.
Now there will be ability to start multiple mtproto instances.
This commit is contained in:
@@ -72,7 +72,7 @@ void PasscodeWidget::onSubmit() {
|
||||
if (Local::readMap(_passcode->text().toUtf8()) != Local::ReadMapPassNeeded) {
|
||||
cSetPasscodeBadTries(0);
|
||||
|
||||
MTP::start();
|
||||
Messenger::Instance().startMtp();
|
||||
if (AuthSession::Current()) {
|
||||
App::wnd()->setupMain();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user