Checking for New Chat Messages via API

thanks @j.jaffeux. I’m taking a look at /chat/api/me/channels and do see under tracking that I can go through all the channels and see if the unread_count for any of the channels > 0 which is helpful.

But this doesnt seem to have anything to do with a user’s chat_header_indicator_preference and also doesnt tell me if there have been any DMs or mentions for the user.

In theory I can try to recreate the logic of chat_header_indicator_preference by first checking if the user has that set to “all_new” and if so, check to see if any unread_counts for their channels are > 0 and if those are all 0 then check for unread DMs/mentions.

But I’m hoping there might be a better way to do it… (and I’m also not sure how to get that second piece for unread DMs/mentions).

Any help / guidance would be very much appreciated.