1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 05:58:58 +01:00

Minor fixes

This commit is contained in:
Daniil Gentili 2023-12-06 21:25:23 +01:00
parent 64b20ead27
commit b4d9fa69af
4 changed files with 4 additions and 4 deletions

2
docs

@ -1 +1 @@
Subproject commit b5aa55944beab3de3384a300fdcc5c629557fd83
Subproject commit 30592a1f89afc48af05d1898acec1cd03d1997ee

View File

@ -67,7 +67,7 @@ class SecretHandler extends SimpleEventHandler
$this->requestSecretChat($update);
}
if (($update['message']['message'] ?? '') === 'ping') {
$this->messages->sendMessage(['message' => 'pong', 'peer' => $update]);
$this->messages->sendMessage(message: 'pong', peer: $update);
}
}
/**

View File

@ -1037,7 +1037,7 @@ trait UpdateHandler
} catch (RPCErrorException $e) {
if ($e->rpc === 'SESSION_PASSWORD_NEEDED') {
$this->logger->logger(Lang::$current_lang['login_2fa_enabled'], Logger::NOTICE);
$this->authorization = $this->methodCallAsyncRead('account.getPassword', [], $datacenter);
$this->authorization = $this->methodCallAsyncRead('account.getPassword', [], $datacenter ?? null);
if (!isset($this->authorization['hint'])) {
$this->authorization['hint'] = '';
}

View File

@ -1,5 +1,5 @@
memory_limit = -1
zend.assertions = 1
;zend.assertions = 1
display_errors = On
display_startup_errors = On