Is it possible to set multiple messageTypeFilters in my MessageListParams??
I would like to have .user and .file messages appear in my chat, leaving out .admin messages. But I’m having difficulty achieving this.
Thank you!
Is it possible to set multiple messageTypeFilters in my MessageListParams??
I would like to have .user and .file messages appear in my chat, leaving out .admin messages. But I’m having difficulty achieving this.
Thank you!
Hello @bwork35, Welcome to the Sendbird Community!
Unfortunately, we do not support setting multiple messageTypeFilters in MessageListParams.
Instead, you may need to retrieve all messages from the collection and implement the filtering logic in your client app to exclude only the admin message type before displaying them.
Got you.. thank you for the response!
This might be a silly followup question.. but if I’m using GroupChannelView in SwiftUI, I generally understand how to fetch all messages and filter them.. but how would I then apply or send the filtered messages to my GroupChannelView for display?
I could probably be just unaware of something simple.. but I’ve only ever been able to use a GroupChannelViewProvider to determine messages for my channelView..and in that case, I don’t actually handle the messages that get shown.