1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 09:58:59 +01:00
This commit is contained in:
Daniil Gentili 2023-09-26 15:53:59 +02:00
parent 7c3b72fb38
commit 0454a41623
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -494,7 +494,7 @@ final class Connection
*/
public function sendMessage(MTProtoOutgoingMessage $message, bool $flush = true): void
{
if (!$message->isUnencrypted() && !$this->shared->needsAuth()) {
if (!$message->isUnencrypted() && $this->shared->needsAuth()) {
$this->API->logger("Initing auth in DC {$this->datacenter} due to call to $message!");
$this->shared->initAuthorization();
}