mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 09:58:59 +01:00
Fix
This commit is contained in:
parent
7c3b72fb38
commit
0454a41623
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user