1
0
mirror of https://github.com/danog/magnaluna.git synced 2024-11-26 11:34:39 +01:00
This commit is contained in:
Daniil Gentili 2023-08-20 18:18:51 +02:00
parent 17b6b909fe
commit ad6548e12f
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -134,7 +134,7 @@ class MyEventHandler extends SimpleEventHandler
try {
$message = 'Total running calls: '.count($this->calls).PHP_EOL.PHP_EOL;
$message .= PHP_EOL.PHP_EOL.PHP_EOL;
$message .= "Emojis: ".implode('', $call->getVisualization());
$message .= "Emojis: ".implode('', $call->getVisualization() ?? []);
$this->messages->editMessage(['id' => $this->messageIds[$call->otherID], 'peer' => $user, 'message' => $message]);
} catch (RPCErrorException $e) {
@ -157,7 +157,7 @@ class MyEventHandler extends SimpleEventHandler
try {
$message = 'Total running calls: '.count($this->calls).PHP_EOL.PHP_EOL;
$message .= PHP_EOL.PHP_EOL.PHP_EOL;
$message .= "Emojis: ".implode('', $call->getVisualization());
$message .= "Emojis: ".implode('', $call->getVisualization() ?? []);
$this->messages[$call->otherID] = $this->sendMessage(peer: $call->otherID, message: $message)->id;
$this->calls[$call->otherID] = $call;