-
Notifications
You must be signed in to change notification settings - Fork 369
Closed
Labels
enhancementNew feature or requestNew feature or requestpr_openA PR to fix the issue is already openA PR to fix the issue is already open
Description
Please select which package this feature is related to
stream_chat
Which platforms would this feature impact?
iOS, Android, Web, Windows, MacOS, Linux
Is your feature request related to a problem?
Other Stream SDKs, such as the javascript sdk allow querying the unread count, and getting more detail about unread channels, channel types, etc.
https://getstream.io/chat/docs/javascript/unread/#fetch-unread-api
This functionality is currently not implemented in the Dart/Flutter SDK. However, as this API can be called client side as a regular user, there is no reason why it should not be added to the SDK.
Describe the solution that you'd like
A new method added to StreamChatClient
for fetching the unread counts.
Something like:
const unreads = await streamChatClient.getUnreadCount();
print(unreads.channelType['team']) // prints the number of unread for the team channel type
Describe alternatives that you have considered
No response
Additional context
This is very useful to us as we are using Stream for two separate features in our app and need to be able to show separate unread counts in different parts of the UI
Code of Conduct
- I agree to follow this project's Code of Conduct
trentCareApp
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpr_openA PR to fix the issue is already openA PR to fix the issue is already open