Init default update state if not present

This commit is contained in:
Daniil Gentili 2019-06-17 13:01:13 +02:00
parent 31fb37d39c
commit 1397842c86
2 changed files with 2 additions and 1 deletions

2
docs

@ -1 +1 @@
Subproject commit d9adbbb25c3edb2bd076500562040249742644a4
Subproject commit aa2c729ab58df6fd79753083bc3c5930d006efce

View File

@ -994,6 +994,7 @@ class MTProto extends AsyncConstruct implements TLCallback
if (!isset($this->seqUpdater)) {
$this->seqUpdater = new SeqLoop($this);
}
$this->channels_state->get(false);
$channelIds = [];
foreach ($this->channels_state->get() as $state) {
$channelIds[] = $state->getChannel();