diff options
author | Joas Schilling <coding@schilljs.com> | 2022-04-07 11:01:02 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-04-13 17:14:19 +0300 |
commit | 90515196fe5f0f469d14224e1ad728c49a064dda (patch) | |
tree | 489c5b5c17660db4d44d83dbb3fba80a2f9499da /lib | |
parent | 6692f189bc124c02c67d0e99aade4061fb150109 (diff) |
Fix PHP 7.4 compatibility
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/ChatController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php index c60885bc5..de0a0d7b7 100644 --- a/lib/Controller/ChatController.php +++ b/lib/Controller/ChatController.php @@ -750,7 +750,7 @@ class ChatController extends AEnvironmentAwareController { $attachments = $this->attachmentService->getAttachmentsByType($this->room, $objectType, 0, $limit); $messageIdsByType[$objectType] = array_map(static fn (Attachment $attachment): int => $attachment->getMessageId(), $attachments); } - $comments = $this->chatManager->getMessagesById($this->room, array_merge(...$messageIdsByType)); + $comments = $this->chatManager->getMessagesById($this->room, array_merge(...array_values($messageIdsByType))); foreach ($comments as $comment) { $message = $this->messageParser->createMessage($this->room, $this->participant, $comment, $this->l); |