Merge pull request #11330 from HabitRPG/feature/inbox/last-message

Conversation-API: Add last message
This commit is contained in:
Matteo Pagliazzi
2019-09-09 17:08:13 +02:00
committed by GitHub
3 changed files with 27 additions and 10 deletions
@@ -79,6 +79,20 @@ api.clearMessages = {
* @apiDescription Get the conversations for a user
*
* @apiSuccess {Array} data An array of inbox conversations
*
* @apiSuccessExample {json} Success-Response:
* {"success":true,"data":[
* {
* "_id":"8a9d461b-f5eb-4a16-97d3-c03380c422a3",
* "user":"user display name",
* "username":"some_user_name",
* "timestamp":"12315123123",
* "text":"last message of conversation",
* "userStyles": {},
* "contributor": {},
* "count":1
* }
* }
*/
api.conversations = {
method: 'GET',