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 committed Sep 19, 2024
1 parent 521c641 commit 57a301b
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 57a301b

Please sign in to comment.