Skip to content

Commit

Permalink
Merge pull request #13355 from Souptik2001/fix/13286/expire-unread-ca…
Browse files Browse the repository at this point in the history
…che-on-message-delete

fix(chatManager): Expire unread cache on message delete
  • Loading branch information
nickvergessen authored Sep 25, 2024
2 parents 30d9764 + 03db025 commit c284b1d
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 c284b1d

Please sign in to comment.