Skip to content

Issue with CarrotSDK Unread Messages Count Fluctuation #24

@sergey-wq

Description

@sergey-wq

Hello,
I hope you can assist me with an issue I'm experiencing with the CarrotSDK integration.
According to your documentation, message updates should be delivered through the closure in Carrot.shared.getUnreadConversationsCount. However, I'm currently encountering a problem where when I call Carrot.shared.openChat(), the closure begins receiving fluctuating values.

Issue Description:
I had 1 unread message
The closure starts receiving: 0, then 1, then 0, then 1 again
This creates an inconsistent user experience

Expected Behavior:
The unread count should remain stable and only change when actual messages are received or read.
Could you please help me resolve this issue? I would appreciate any guidance on how to properly handle the unread messages count or if there's a known workaround for this behavior.
Thank you for your time and assistance.
Best regards, Siarhei

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions