# Subchannel unread count real time update

**URL:** <https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187>\
**Category:** TS SDK\
**Created:** [March 8, 2024, 5:09pm UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187 "2024-03-08T17:09:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![keyyuwan](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@keyyuwan](https://forum.social.plus/u/keyyuwan)\
**Post date:** [March 8, 2024, 5:09pm UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/1 "2024-03-08T17:09:06Z")

</div>

My application needs to update the unread count for a subchannel in real time.

I am following the steps in the docs, but the live subchannel does not update in real time.

Here is my code:

 ![Captura de tela 2024-03-08 140637](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/42b1015a5f1da20353d6fc06cb2747293eafca30.png)

It seems that the `handleLiveObject` function executes once, which is when the page first loads. When I receive a message in the subchannel, the function is not executed.

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [March 11, 2024, 4:55am UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/2 "2024-03-11T04:55:09Z")

</div>

Hello @keyyuwan , From the issue you’ve inquired about, we’d like to ask if you have already called this function:

```auto
import { Client } from '@amityco/ts-sdk';

Client.enableUnreadCount();

```

---

<div class="post-metadata">

**Author:** ![keyyuwan](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@keyyuwan](https://forum.social.plus/u/keyyuwan)\
**Post date:** [March 11, 2024, 4:41pm UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/3 "2024-03-11T16:41:33Z")

</div>

Hey!

Yes, I am calling this function when I authenticate the amity client  
 ![Captura de tela 2024-03-11 134116](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/0ad9f0af47690ec48880a4c1da1a941e29c2fe0c.png)

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [March 12, 2024, 8:50am UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/4 "2024-03-12T08:50:56Z")

</div>

@keyyuwan Let me pass to check with my team.

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [March 15, 2024, 10:57am UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/5 "2024-03-15T10:57:20Z")

</div>

Hello, may I know which version of the Amity TypeScript SDK you’re currently using, please?

---

<div class="post-metadata">

**Author:** ![keyyuwan](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@keyyuwan](https://forum.social.plus/u/keyyuwan)\
**Post date:** [March 15, 2024, 2:31pm UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/6 "2024-03-15T14:31:06Z")

</div>

I am using version 6.18.0

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [March 18, 2024, 8:34am UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/7 "2024-03-18T08:34:56Z")

</div>

Hello, thank you for confirming the details. We’ve successfully replicated the issue and we will keep you updated on our progress.

---

<div class="post-metadata">

**Author:** ![keyyuwan](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@keyyuwan](https://forum.social.plus/u/keyyuwan)\
**Post date:** [March 18, 2024, 1:31pm UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/8 "2024-03-18T13:31:49Z")

</div>

Okay, I’ll await your update

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [March 20, 2024, 11:32am UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/9 "2024-03-20T11:32:10Z")

</div>

Hello, could you please re-test? We have addressed the real-time issue.

---

<div class="post-metadata">

**Author:** ![keyyuwan](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@keyyuwan](https://forum.social.plus/u/keyyuwan)\
**Post date:** [April 19, 2024, 7:23pm UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/10 "2024-04-19T19:23:59Z")

</div>

Hey, sorry for the delay in responding. I re-tested it and now the messages are now being received in real-time, but the message count stays the same, it only updates when I refresh the page.

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [April 22, 2024, 9:30am UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/11 "2024-04-22T09:30:21Z")

</div>

@keyyuwan Following your report that you are still experiencing issues with the unread count not updating, we would like to ask for additional information: **What type of channel are you experiencing this issue with?**

---

<div class="post-metadata">

**Author:** ![skullicious](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@skullicious](https://forum.social.plus/u/skullicious)\
**Post date:** [April 22, 2024, 11:25am UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/12 "2024-04-22T11:25:28Z")

</div>

I am experiencing the same issue. Using “conversation” type with subchannels.

---

<div class="post-metadata">

**Author:** ![keyyuwan](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@keyyuwan](https://forum.social.plus/u/keyyuwan)\
**Post date:** [April 22, 2024, 1:55pm UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/13 "2024-04-22T13:55:31Z")

</div>

“conversation” type with subchannels as mentioned by skullicious.

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [April 22, 2024, 2:01pm UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/14 "2024-04-22T14:01:20Z")

</div>

Thank you for confirmation, will keep you both posted on the updates.

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [April 22, 2024, 2:49pm UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/15 "2024-04-22T14:49:26Z")

</div>

Hello @keyyuwan@skullicious , could you help confirm your app region for me, please?

---

<div class="post-metadata">

**Author:** ![keyyuwan](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@keyyuwan](https://forum.social.plus/u/keyyuwan)\
**Post date:** [April 22, 2024, 3:00pm UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/16 "2024-04-22T15:00:22Z")

</div>

My app regfion: US region

---

<div class="post-metadata">

**Author:** ![skullicious](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@skullicious](https://forum.social.plus/u/skullicious)\
**Post date:** [April 22, 2024, 8:26pm UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/17 "2024-04-22T20:26:53Z")

</div>

Hi there, my region is currently set to EU.

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [April 24, 2024, 10:16am UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/18 "2024-04-24T10:16:25Z")

</div>

Hello, we found the potential root cause for this, aiming to release the fix by this week.

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [April 26, 2024, 7:44am UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/19 "2024-04-26T07:44:21Z")

</div>

Hello @keyyuwan We have addressed the issue you reported in version 6.23.0. Please check again, and if the problem persists, feel free to notify us.

---

<div class="post-metadata">

**Author:** ![keyyuwan](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@keyyuwan](https://forum.social.plus/u/keyyuwan)\
**Post date:** [April 26, 2024, 1:05pm UTC](https://forum.social.plus/t/subchannel-unread-count-real-time-update/1187/20 "2024-04-26T13:05:45Z")

</div>

Hello @SocialPlus_Support Now it’s working properly. Thanks!
