From d38fd3a753173a596d916086d487ca00e055438b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 20 Nov 2024 14:14:02 +0100 Subject: [PATCH] fix(chat): Fix summarizing chats if there are blocks with only invisible messages Signed-off-by: Joas Schilling --- lib/Controller/ChatController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php index 2a3c3d92556..16466c21889 100644 --- a/lib/Controller/ChatController.php +++ b/lib/Controller/ChatController.php @@ -555,6 +555,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); @@ -595,7 +596,6 @@ public function summarizeChat( } $messages[] = $displayName . ': ' . $parsedMessage; - $nextOffset = (int)$comment->getId(); } if (empty($messages)) {