Get number of messages in a channel #4108
-
Hello, I'm currently implementing get stream chat on android and I need to show a specific UI if there is 0 messages, 1 messages or more so I'm looking to get the current numbers of messages in a channel. I've been looking through the multiples UI components that the library offer but none of them was offering the count messages Thanks ! 😊 Edit : you can use https://getstream.io/chat/docs/sdk/android/client/guides/offline-support/#state to get the channel state and then you can listen to the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use https://getstream.io/chat/docs/sdk/android/client/guides/offline-support/#state to get the channel state and then you can listen to the StateFlow<List> |
Beta Was this translation helpful? Give feedback.
You can use https://getstream.io/chat/docs/sdk/android/client/guides/offline-support/#state to get the channel state and then you can listen to the StateFlow<List>