public function getConversationListByUserId($userId, $from = 0, $count = 50, $convId = null)
 {
     $data = array();
     $activeModes = $this->getActiveModeList();
     $conversationItemList = $this->conversationDao->findConversationItemListByUserId($userId, $activeModes, $from, $count, $convId);
     foreach ($conversationItemList as $i => $conversation) {
         $conversationItemList[$i]['timeStamp'] = (int) $conversation['initiatorMessageTimestamp'];
         $conversationItemList[$i]['lastMessageSenderId'] = $conversation['initiatorMessageSenderId'];
         $conversationItemList[$i]['isSystem'] = $conversation['initiatorMessageIsSystem'];
         $conversationItemList[$i]['text'] = $conversation['initiatorText'];
         $conversationItemList[$i]['lastMessageId'] = $conversation['initiatorLastMessageId'];
         $conversationItemList[$i]['recipientRead'] = $conversation['initiatorRecipientRead'];
         $conversationItemList[$i]['lastMessageRecipientId'] = $conversation['initiatorMessageRecipientId'];
         $conversationItemList[$i]['lastMessageWasAuthorized'] = $conversation['initiatorMessageWasAuthorized'];
     }
     $data = $this->getConversationItemByConversationIdListForApi($conversationItemList);
     return $data;
 }