Fixes bug if unread conversation is left permanently
authorMatthias Schmidt <gravatronics@live.com>
Wed, 9 Jan 2013 14:48:48 +0000 (15:48 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 9 Jan 2013 14:48:48 +0000 (15:48 +0100)
files/lib/data/conversation/ConversationAction.class.php

index e6b90d78e700b186faea8202c21ad6c94b037916..e1ee9b71270fb18b549743d153f64a75f2f9d13e 100644 (file)
@@ -437,6 +437,7 @@ class ConversationAction extends AbstractDatabaseObjectAction implements IClipbo
                // reset user's conversationCount if user leaves conversation permanently
                if ($this->parameters['hideConversation'] == 2) {
                        UserStorageHandler::getInstance()->reset(array(WCF::getUser()->userID), 'conversationCount');
+                       UserStorageHandler::getInstance()->reset(array(WCF::getUser()->userID), 'unreadConversationCount');
                }
                
                // unmark items