Skip to content

Commit

Permalink
Merge pull request #13393 from nextcloud/backport/13355/stable30
Browse files Browse the repository at this point in the history
[stable30] fix(chatManager): Expire unread cache on message delete
  • Loading branch information
nickvergessen authored Sep 25, 2024
2 parents 77f2755 + 4987ea6 commit fb62b05
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 fb62b05

Please sign in to comment.