public function getNewConsoleConversationCount($userId, $messageList)
 {
     $convList = array();
     foreach ($messageList as $messageData) {
         if (!in_array($messageData['convId'], $convList)) {
             $convList[] = $messageData['convId'];
         }
     }
     return $this->conversationDao->getNewConversationCountForConsole($userId, $convList);
 }
Esempio n. 2
0
 /**
  * Returns user's new console conversations count
  *
  * @param int $userId
  * @return int
  */
 public function getNewConsoleConversationCount($userId)
 {
     return $this->conversationDao->getNewConversationCountForConsole($userId);
 }