From: Marcel Werk Date: Sun, 7 Apr 2013 20:08:55 +0000 (+0200) Subject: Added missing storage reset X-Git-Tag: 2.0.0_Beta_1~64 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1846a5f42ecab0d6bacd54101a5260c5b5cda95a;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.conversation.git Added missing storage reset --- diff --git a/files/lib/data/conversation/ConversationAction.class.php b/files/lib/data/conversation/ConversationAction.class.php index 3f6fff5..9eecede 100644 --- a/files/lib/data/conversation/ConversationAction.class.php +++ b/files/lib/data/conversation/ConversationAction.class.php @@ -161,6 +161,7 @@ class ConversationAction extends AbstractDatabaseObjectAction implements IClipbo $newParticipantIDs = array_diff(array_merge($this->parameters['participants'], $this->parameters['invisibleParticipants']), $participantIDs); if (!empty($newParticipantIDs)) { // update conversation count + UserStorageHandler::getInstance()->reset($newParticipantIDs, 'unreadConversationCount'); UserStorageHandler::getInstance()->reset($newParticipantIDs, 'conversationCount'); // fire notification event @@ -175,6 +176,7 @@ class ConversationAction extends AbstractDatabaseObjectAction implements IClipbo $conversation->updateParticipants(array($conversation->userID)); // update conversation count + UserStorageHandler::getInstance()->reset($conversation->getParticipantIDs(), 'unreadConversationCount'); UserStorageHandler::getInstance()->reset($conversation->getParticipantIDs(), 'conversationCount'); } }