Skip to content

Muted user's messages still appear in message list #1617

Closed Answered by b-onc
srgray asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @srgray ,

I'm pasting my answer to #2061 here, since it's basically the same question:
"""
It's possible although it's tricky.

When you implement your own UI, you'll have to filter on 2 places:

ChannelController.messages -> you'll most probably use this for numberOfItemsInSection, you have to filter out the messages you won't display. This "filtering" logic can create a bottleneck as the number of messages grows
ChannelControllerDelegate.didUpdateMessages delegate callback -> you need to discard updates related to messages you're not displaying
Alternatively, you can fork the SDK and introduce a var messagesPredicate in ChatChannelController, which you can pass to messagesObserver i…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by b-onc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2️⃣ Duplicate A duplicate Issue or PR ❓ Question Question regarding a specific subject
3 participants
Converted from issue

This discussion was converted from issue #1471 on November 11, 2021 14:03.