[Problem/Question]
I have a group chat filter that is being ignored if a new message is sent in another channel the user is part of. I’m filtering a single specific channel but when a different channel receives a message this filter is ignored and this other channel appear in the channel list.
I’m using SwiftUI and this is the channel list code:
public func makeUIViewController(context: Context) -> UIViewControllerType {
let controller = SBUGroupChannelListViewController()
let params = GroupChannelListQueryParams()
params.channelURLsFilter = [channelUrl ?? ""]
let query = GroupChannel.createMyGroupChannelListQuery(params: params)
let channelCell = ChannelCell()
let component = ChannelListComponent(store: store)
component.register(channelCell: channelCell)
component.emptyView = ChannelsEmptyView()
controller.listComponent = component
controller.createViewModel(channelListQuery: query)
return controller
}
[UIKit Version]
3.2.2
[Reproduction Steps]
- Wrap
SBUGroupChannelListViewController
intoUIViewControllerRepresentable
- Create
GroupChannel.createMyGroupChannelListQuery
withchannelURLsFilter
filtering a single channel - Send a message in another channel that user is part of but with different channel URL
Result: A different channel URL will appear in channel list
Expected: Just the channel I’ve added in the filter should appear.
[Frequency]
Sometimes
[Current impact]
User is seeing channel they shouldn’t.