Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

[Question] How can i get the unread message count using the Rest API?

Open sachinrkeche opened this issue 8 years ago • 2 comments

Hello Developers , I am using this API to get the unread message count api/v1/im.history?roomId=vQY9voKHa6pHH6di3&unreads=true, passing Auth token and user Id i am getting the result with the output with messages "unreadNotLoaded": 0, "success": true ,

here i am not getting the "firstUnread" property since messages are unread by the user and
getting "unreadNotLoaded":0 for every time , what is the wrong here, I have to find out the unread messages against the user, please help me out.

sachinrkeche avatar Jan 19 '18 11:01 sachinrkeche

Closing as this has been answered over on Stack Overflow: https://stackoverflow.com/a/45752751/6997092

graywolf336 avatar Jan 19 '18 17:01 graywolf336

@graywolf336 is it any way to get unread messages for users at user level like whatsapp, in the whatsapp it shows the overall unread msgs and then inside it is divided at component level.

Currently we are having the API to get the unread msgs at of user for particular channels.

Jamirkhan50 avatar May 24 '18 10:05 Jamirkhan50