# Get list of unread messages for a group channel for a user

**URL:** <https://community.sendbird.com/t/get-list-of-unread-messages-for-a-group-channel-for-a-user/8017>\
**Category:** JavaScript\
**Created:** [August 8, 2023, 4:49pm UTC](https://community.sendbird.com/t/get-list-of-unread-messages-for-a-group-channel-for-a-user/8017 "2023-08-08T16:49:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HankHeadRace](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/hankheadrace/32/4392_2.png) [@HankHeadRace](https://community.sendbird.com/u/HankHeadRace)\
**Post date:** [August 8, 2023, 4:49pm UTC](https://community.sendbird.com/t/get-list-of-unread-messages-for-a-group-channel-for-a-user/8017/1 "2023-08-08T16:49:08Z")

</div>

Is there a way to fetch unread messages for a user in a group channel? We want to notify users in an email that they have unread messages and would like to get all unread messages to provide context to the user.

---

<div class="post-metadata">

**Author:** ![Chinmaya\_Gupta](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/chinmaya_gupta/32/1021_2.png) [@Chinmaya\_Gupta](https://community.sendbird.com/u/Chinmaya_Gupta)\
**Post date:** [August 9, 2023, 6:16am UTC](https://community.sendbird.com/t/get-list-of-unread-messages-for-a-group-channel-for-a-user/8017/2 "2023-08-09T06:16:25Z")

</div>

Hello @HankHeadRace

Welcome to the Sendbird community!

Yes, you can fetch the number of unread messages for a user in a group channel using the Sendbird Chat SDK. You can use the `getUnreadMessageCount()` method to retrieve the number of unread messages for a specific user in a group channel. The `getUnreadMessageCount()` method returns the total number of unread messages in the group channel for the current user.

Then, you can use the `getMessagesByTimestamp()` method to fetch all unread messages in the group channel. You can process these unread messages and provide context to the user as needed.

Reference: [Retrieve number of members who haven't read a message | Chat JavaScript SDK | Sendbird Docs](https://sendbird.com/docs/chat/sdk/v4/javascript/message/retrieving-unread-counts-in-a-group-channel/members-who-havent-read-a-message#1-retrieve-number-of-members-who-haven-t-read-a-message)

Let me know if this helps.
