From 03db025c187fe9328af28c62a3dc0ea75b5678e4 Mon Sep 17 00:00:00 2001 From: Souptik Datta Date: Fri, 20 Sep 2024 01:52:51 +0530 Subject: [PATCH] fix(chatManager): Expire unread cache on message delete Signed-off-by: Souptik Datta --- lib/Chat/ChatManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Chat/ChatManager.php b/lib/Chat/ChatManager.php index d59075c6e17..b709581ddc7 100644 --- a/lib/Chat/ChatManager.php +++ b/lib/Chat/ChatManager.php @@ -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(),