You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation
A clear and concise description of what the problem/opportunity is. Ex. I'm always frustrated when [...]
hi 👋 we use different channel types within our app I.e messaging vs live stream etc. We separate out the different functionality into different tabs and only query certain channel types within each tab. We would like to show the total unread count of each channel type on each tab. For example, lets say a user has 11 unread messages in total across all channel types. We would like to show 1 unread message on the messaging tab vs 10 on the live stream tab. This is important to bring users to those tabs to indicate something has changed. Having a single unread counter makes this very difficult as you can't even just put a red dot on the tab as you don't know if all unread messages are just from a single channel type.
Proposed solution
A clear and concise description of what you want to happen.
The total unread count across all channels is still critical to app badges so that should remain but after using connectUser and accessing the OwnUserResponse you should have some way to break down the total_unread_count by channel.
The solution would also need to update the listener on client for new events. When a new event is triggered with an updated unread count, we would need to know what channel type this is so we can update the tab accordingly.
Acceptance Criteria
A set of predefined requirements that must be met to mark a user story complete.
Connect to a user
Still be able to access the total unread count across all channels
Be able to break down the total unread count across all channels by channel type.
Recieve a new event on the client
See the event contains the total unread count across all channels and can be broken down by channel type
P.S happy to move this to stream-chat-js if not directly related to the react native library
The text was updated successfully, but these errors were encountered:
Motivation
A clear and concise description of what the problem/opportunity is. Ex. I'm always frustrated when [...]
hi 👋 we use different channel types within our app I.e messaging vs live stream etc. We separate out the different functionality into different tabs and only query certain channel types within each tab. We would like to show the total unread count of each channel type on each tab. For example, lets say a user has 11 unread messages in total across all channel types. We would like to show 1 unread message on the messaging tab vs 10 on the live stream tab. This is important to bring users to those tabs to indicate something has changed. Having a single unread counter makes this very difficult as you can't even just put a red dot on the tab as you don't know if all unread messages are just from a single channel type.
Proposed solution
A clear and concise description of what you want to happen.
The total unread count across all channels is still critical to app badges so that should remain but after using
connectUser
and accessing theOwnUserResponse
you should have some way to break down thetotal_unread_count
by channel.The solution would also need to update the listener on client for new events. When a new event is triggered with an updated unread count, we would need to know what channel type this is so we can update the tab accordingly.
Acceptance Criteria
A set of predefined requirements that must be met to mark a user story complete.
P.S happy to move this to stream-chat-js if not directly related to the react native library
The text was updated successfully, but these errors were encountered: