Unread posts in the API
I want to use the API to check if I have unread posts, but it doesn't seem the API contains such a counter. It contains a msg_count
and a mention_cout
, but not the counter I want.
There is still a possible hack:
For each channel in a team:
* Get the timestamp of the last visit
* Get the posts created after that timestamp
* Count them
Besides the fact that it's insanely complex compared to a simple yet handy counter in the API, it involves that we have to fetch the content of all the unread posts, which is a great waste of net traffic, if you intend to check it frequently.