Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow querying for a users total unread messages count #148

Open
ebjorklund01 opened this issue Nov 20, 2023 · 0 comments
Open

Allow querying for a users total unread messages count #148

ebjorklund01 opened this issue Nov 20, 2023 · 0 comments

Comments

@ebjorklund01
Copy link

We need a way to access a user's total unread message count from our Rails backend. The total unread count will be added to a set of other unviewed entities from our application to form a count that will be included as a badge field in a push notification payload.

Querying for a user

@client.search({members: {"$in" => [user.external_id]}}, {"user.id": user.external_id})

Doesn't show any "unread" data, and it is not clear from the documentation how we can query for an unread message count.

The stream-chat-flutter package provides a totalUnreadCountStream is it possible to access this same count from the ruby SDK?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant