Skip to content

Commit

Permalink
fix(chatManager): Expire unread cache on message delete
Browse files Browse the repository at this point in the history
Signed-off-by: Souptik Datta <[email protected]>
  • Loading branch information
Souptik2001 authored and backportbot[bot] committed Sep 25, 2024
1 parent 77f2755 commit 4987ea6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Chat/ChatManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ public function deleteMessage(Room $chat, IComment $comment, Participant $partic

$this->referenceManager->invalidateCache($chat->getToken());

$this->unreadCountCache->clear($chat->getId() . '-');

return $this->addSystemMessage(
$chat,
$participant->getAttendee()->getActorType(),
Expand Down

0 comments on commit 4987ea6

Please sign in to comment.