diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php index e9f74a10321..7c23c05f016 100644 --- a/lib/Controller/ChatController.php +++ b/lib/Controller/ChatController.php @@ -550,6 +550,7 @@ public function summarizeChat( $messages = []; $nextOffset = 0; foreach ($comments as $comment) { + $nextOffset = (int)$comment->getId(); $message = $this->messageParser->createMessage($this->room, $this->participant, $comment, $this->l); $this->messageParser->parseMessage($message); @@ -590,7 +591,6 @@ public function summarizeChat( } $messages[] = $displayName . ': ' . $parsedMessage; - $nextOffset = (int)$comment->getId(); } if (empty($messages)) {