1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 03:14:39 +01:00
This commit is contained in:
Daniil Gentili 2023-09-23 18:23:11 +02:00
parent 732e67c325
commit 6022b3d96a
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 7 additions and 3 deletions

View File

@ -25,6 +25,7 @@ use danog\MadelineProto\Loop\InternalLoop;
use danog\MadelineProto\MTProto;
use danog\MadelineProto\SecretChats\SecretChatController;
use danog\MadelineProto\SecurityException;
use Revolt\EventLoop;
/**
* Secret feed loop.
@ -57,6 +58,9 @@ final class SecretFeedLoop extends Loop
}
public function __wakeup()
{
if (!isset($this->API->logger)) {
$this->API->setupLogger();
}
$this->init($this->API);
}
/**

View File

@ -114,11 +114,11 @@ final class SecretChatController implements Stringable
'access_hash' => $accessHash
];
if ($creator) {
$this->in_seq_no_base = 1;
$this->out_seq_no_base = 0;
} else {
$this->in_seq_no_base = 0;
$this->out_seq_no_base = 1;
} else {
$this->in_seq_no_base = 1;
$this->out_seq_no_base = 0;
}
$this->public = new SecretChat(
DialogId::fromSecretChatId($id),