diff --git a/lib/Service/RoomFormatter.php b/lib/Service/RoomFormatter.php index 3460160501..4d9c1205bf 100644 --- a/lib/Service/RoomFormatter.php +++ b/lib/Service/RoomFormatter.php @@ -403,6 +403,11 @@ class RoomFormatter { } } + if ($roomData['lastReadMessage'] === 0) { + // Guest in a fully expired chat, no history, just loading the chat from beginning for now + $roomData['lastReadMessage'] = ChatManager::UNREAD_FIRST_MESSAGE; + } + if ($currentUser instanceof IUser && $attendee->getActorType() === Attendee::ACTOR_USERS && $roomData['lastReadMessage'] === ChatManager::UNREAD_FIRST_MESSAGE