-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get unread message via rest api for Rocket.chat #7775
Comments
We aim to keep our Github issues for bugs and feature requests. This does not fit that criteria. |
Reopening as this is actually a bug with the current |
I have the same problem with version 0.59.3. I can't find the total of unreal messages. All I see is the |
@mbouchard what's the full url you're calling? |
I'm calling |
Hi @mbouchard , the To get the total amount we verify if the |
@mbouchard graywolf336 I'm calling "/api/v1/im.history?roomId=MLtBizp6jZT6w5LmqXrJK2GRbJBPPKSYPm&unreads=true", but it return unreadNotLoaded = 0; Which is not right. Please help me ASAP. |
@shreekarade I never managed to get the correct number of unread messages with that method and I didn't have any time left to achieve it. |
Hi Team, |
Description:
Hello I have used this https://rocket.chat/docs/developer-guides/rest-api/im/history for get unread message via rest API. Rocket.chat server version is 0.57.3 .
Example Call
Code
I have try to above link and code but it will not give any unread property in result
Example Result
{ "messages": [ { "_id": "7e6691fc-16sdfd3-ecbfsd8-317a-4076bb307e5dfsfd-4564", "rid": "CBsDHB7M8fsdfsdfN8G4X2BjsBDt5khnkenENacLN", "msg": "hittti", "ts": "2017-08-16T11:08:21.011Z", "u": { "_id": "CBsDHsdadsaB7M8N8G4X2Bj", "username": "xyz", "name": "xyz21" }, "mentions": [], "channels": [], "_updatedAt": "2017-08-16T11:08:21.013Z" }, { "_id": "eaf75056-bcxcvxcv40c-4a68-0128-c40503289d60", "rid": "CBsDHxcvB7M8cvxvxcvN8G4X2BjsBDt5kxcvhnkenENacLN", "msg": "hi", "ts": "2017-08-16T11:07:53.579Z", "u": { "_id": "CBsDHB7M8N8G4X2Bj", "username": "Abc", "name": "Abc123 " }, "mentions": [], "channels": [], "_updatedAt": "2017-08-16T11:07:53.583Z" }] }
Please help me out.
Thank You.
The text was updated successfully, but these errors were encountered: