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

Filter Unread/Pinned/Archived Chats #4863

Open
muaviyaijaz123 opened this issue Jul 3, 2023 · 0 comments
Open

Filter Unread/Pinned/Archived Chats #4863

muaviyaijaz123 opened this issue Jul 3, 2023 · 0 comments

Comments

@muaviyaijaz123
Copy link

Hi,

We are using Android SDK in Kotlin for Messaging in our app.

We have a feature in our app where we need to filter unread channels and update it accordingly when the user opens the chat or mark it as read.

The problem is we are not able to find such filter on Stream Chat Messaging SDK.

The code we are using for filtering all channels is by using ChannelListViewModelFactory as below:

ChannelListViewModelFactory(
filter = Filters.and(
Filters.eq("type", "messaging"),
Filters.in("members", listOf(userId))
)
)

How do we filter unread/pinned/archived chats ?

SDK Version: 5.17.3

Thanks,

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

No branches or pull requests

1 participant