mirror of
https://github.com/nextcloud/spreed.git
synced 2025-07-21 10:37:10 +00:00
fix(chat): Fix guests in a fully empty chat
Signed-off-by: Joas Schilling <coding@schilljs.com> [skip ci]
This commit is contained in:

committed by
backportbot[bot]
![backportbot[bot]](/assets/img/avatar_default.png)
parent
1f092319fd
commit
c9866f89a3
@ -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
|
||||
|
Reference in New Issue
Block a user