Added missing storage reset
authorMarcel Werk <burntime@woltlab.com>
Sun, 7 Apr 2013 20:08:55 +0000 (22:08 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 7 Apr 2013 20:08:55 +0000 (22:08 +0200)
files/lib/data/conversation/ConversationAction.class.php

index 3f6fff536539216a07958a9cf815dfea3251751c..9eecede8f936354a9d2f468035335a9708ba142d 100644 (file)
@@ -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');
                                }
                        }