# How to get unread message count for channels that im not a member of?

**URL:** <https://community.sendbird.com/t/how-to-get-unread-message-count-for-channels-that-im-not-a-member-of/3105>\
**Category:** JavaScript\
**Tags:** group-channel, chatsdk\
**Created:** [September 26, 2021, 10:57am UTC](https://community.sendbird.com/t/how-to-get-unread-message-count-for-channels-that-im-not-a-member-of/3105 "2021-09-26T10:57:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Omer\_Yaari](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/omer_yaari/32/1636_2.png) [@Omer\_Yaari](https://community.sendbird.com/u/Omer_Yaari)\
**Post date:** [September 26, 2021, 10:57am UTC](https://community.sendbird.com/t/how-to-get-unread-message-count-for-channels-that-im-not-a-member-of/3105/1 "2021-09-26T10:57:11Z")

</div>

Hello,  
I’m trying to figure out how to get the unread message count for channels the user has not joined (Javascript SDK).  
Every time I join a channel, I have the correct count and correct “myLastRead” timestamp.  
When I leave a channel, the count and timestamp get zeroed.  
Is there a way to know if the channel has new messages even when I have not joined it?  
Thanks.

---

<div class="post-metadata">

**Author:** ![walter.rodriguez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/walter.rodriguez/32/546_2.png) [@walter.rodriguez](https://community.sendbird.com/u/walter.rodriguez)\
**Post date:** [September 27, 2021, 10:00am UTC](https://community.sendbird.com/t/how-to-get-unread-message-count-for-channels-that-im-not-a-member-of/3105/2 "2021-09-27T10:00:36Z")

</div>

If you leave the channel, then you lose all information about it… That’s the idea of being member of a channel.

If you need to provide this information to your connected users, you will have to use Platform API:

> **[User | Chat Platform API | Sendbird Docs](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels)**
>
> Manage the attibutes and functionalities of the users.

```auto
/v3/users/your-user-id-here/my_group_channels

```

The response will include all user’s information about each of his channels.

You can’t from SDK since all you do from SDK will work for the connected user.
