Improved conversation get methods

This commit is contained in:
Pierre
2017-06-25 19:11:00 +02:00
parent eed7db90cf
commit df1808c6c3
2 changed files with 23 additions and 2 deletions

View File

@ -305,7 +305,7 @@ class conversationsController{
Rest_fatal_error(401, "Specified user doesn't belongs to the conversation number ".$conversationID." !");
//Then we can get the ten las messages of the conversation system
$conversationsMessages[$conversationID] = CS::get()->components->conversations->getLastMessages($conversationID, 10);
$conversationsMessages["conversation-".$conversationID] = CS::get()->components->conversations->getLastMessages($conversationID, 10);
}
}