mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 03:14:39 +01:00
Fix
This commit is contained in:
parent
732e67c325
commit
6022b3d96a
@ -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);
|
||||
}
|
||||
/**
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user