RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.67k stars 10.66k forks source link

How to make an interface /api/v1/users.info return unreads #20162

Open wangengzheng opened 3 years ago

wangengzheng commented 3 years ago

Description:

/api/v1/users.info response no include unread count

Steps to reproduce:

  1. Admin Panel => General => Unread_Count ![image](https://user-images.githubusercontent.com/12171338/104271700-5e3b6600-5450-11eb-8ffa-acefb47a8e0b.png) ![image](https://user-images.githubusercontent.com/12171338/104271732-701d0900-5450-11eb-9cc5-7600cc8815f7.png)

Expected behavior:

image

Actual behavior:

image

Server Setup Information:

Client Setup Information

Additional context

image

Relevant logs:

wangengzheng commented 3 years ago

We look forward to your reply

wangengzheng commented 3 years ago

image

https://github.com/RocketChat/Rocket.Chat/blob/bf88a0e013a335611d53cfacc722f2d17ff68ff4/app/api/server/v1/users.js

Is rest API doc inconsistent with the code