This commit is contained in:
Daniil Gentili 2020-11-07 20:07:07 +01:00
parent 8164279427
commit d8319e39d3
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -46,7 +46,7 @@ trait CallHandler
if ($datacenter === $this->datacenter) {
$datacenter = false;
}
$message_ids = $this->outgoing_messages[$message_id] instanceof Container
$message_ids = ($this->outgoing_messages[$message_id] ?? null) instanceof Container
? $this->outgoing_messages[$message_id]->getIds()
: [$message_id];
foreach ($message_ids as $message_id) {