# StartMessageReceiptSync does not work properly

**URL:** <https://forum.social.plus/t/startmessagereceiptsync-does-not-work-properly/1463>\
**Category:** Android\
**Created:** [September 19, 2024, 7:59pm UTC](https://forum.social.plus/t/startmessagereceiptsync-does-not-work-properly/1463 "2024-09-19T19:59:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben331](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@ben331](https://forum.social.plus/u/ben331)\
**Post date:** [September 19, 2024, 7:59pm UTC](https://forum.social.plus/t/startmessagereceiptsync-does-not-work-properly/1463/1 "2024-09-19T19:59:59Z")

</div>

After migrate to latest Amity version, we made the following changes:

Old code:

```kotlin
    suspend fun startReading(): Completable? {
        val subChannelRepository: AmitySubChannelRepository = AmityChatClient.newSubChannelRepository()
        return subChannelRepository.getSubChannel(channelID)
            .awaitFirstOrNull()
            ?.startReading()
    }

```

We follow instructions here:  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/46fc5032c066c3f368af0a69b5b79f5700ff9056.png)

New Code

```kotlin
    fun startReading(): Completable {
        val subChannelRepository: AmitySubChannelRepository = AmityChatClient.newSubChannelRepository()
        return subChannelRepository.startMessageReceiptSync(channelID)
    }

```

We made sure this line is being called first of all: `AmityCoreClient.enableUnreadCount()`

However, now the unread count is not updated successfully, unread count increments and never sets to 0, unless user sends a message to the same channel.

does startMessageReceiptSync really do the same as startReading()?  
should we implement something else? Documentation is not clear on this aspect.

This is happening with a “Conversation Channel”

---

<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:** [September 20, 2024, 8:01am UTC](https://forum.social.plus/t/startmessagereceiptsync-does-not-work-properly/1463/2 "2024-09-20T08:01:41Z")

</div>

Hello @ben331 , We have forwarded the issue you reported to the relevant team for further investigation. We will keep you updated as soon as we have any progress. Thank you for your patience.

---

<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:** [September 20, 2024, 8:58am UTC](https://forum.social.plus/t/startmessagereceiptsync-does-not-work-properly/1463/3 "2024-09-20T08:58:12Z")

</div>

Hello @ben331, to address this issue, we would recommend implementing mark message as read function. Please refer to the docs below.

**Docs:** [Mark Message as Read](https://docs.amity.co/amity-sdk/chat/channels/unread-count/mark-message-as-read)

Kindly let us know if you have any questions.
