Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

API method to get unseen posts count

$
0
0

Hi @raspbeguy,

If you GET the /api/v3/teams/TEAM_ID/channels/members route or use the getMyChannelMembers of our Javascript/Go clients, you'll get back an array of ChannelMember objects for all of your channels on the given team. If you call it with an empty TEAM_ID, you'll get ChannelMembers for all of your DM channels.

Each ChannelMember contains a msg_count field (the number of unread posts) and a mention_count field (the number displayed in a circle next to the channel name in Mattermost). They also have a last_viewed_at time as well if you still need it.


Viewing all articles
Browse latest Browse all 25778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>