diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php index 1b956810c99..964ade5861b 100644 --- a/lib/Controller/ChatController.php +++ b/lib/Controller/ChatController.php @@ -184,6 +184,8 @@ public function sendMessage(string $message, string $actorDisplayName = '', int return new DataResponse([], Http::STATUS_CREATED); } + $this->participant->setLastReadMessage((int) $comment->getId()); + $data = $chatMessage->toArray(); if ($parentMessage instanceof Message) { $data['parent'] = $parentMessage->toArray();