API: Add new_msg_count to /users/me/teams/{{team_id}}/channels/members
Currently you need to make two calls to get the total count of unread messages or to get the count of unread messages from a single channel (/users/me/teams/{{team_id}}/channels
and /users/me/teams/{{team_id}}/channels/members
).
To avoid the first request, it would be nice to have a new property e.g. new_msg_count
that returns the current new message count for a channel. This is currently only possible by substracting the msg_count
(second request) from the total_msg_count
(first request).
This topic has already been discussed on github: https://github.com/mattermost/mattermost-server/issues/8591#issuecomment-383909505
![](https://secure.gravatar.com/avatar/f5caa39a238b237485f80a832f2e5b11?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)