Exclude custom state events from the timeline (#7854)

Don't display custom state events not supported by the SDK
This commit is contained in:
Jorge Martin Espinosa
2026-10-05 11:12:12 +02:00
committed by GitHub
parent 48d6b5cadf
commit b038e30d28
@@ -46,10 +46,13 @@ class RustTimelineEventFilterFactory : TimelineEventFilterFactory {
} else {
emptyList()
}
// Exclude any custom state events not supported by the SDK
val customStateEventsFilter = listOf(TimelineEventCondition.AnyCustomStateEvent)
return if (excludedEventTypes.isNotEmpty() || excludedMembershipChanges.isNotEmpty()) {
TimelineEventFilter.Exclude(excludedEventTypes + excludedMembershipChanges)
TimelineEventFilter.Exclude(customStateEventsFilter + excludedEventTypes + excludedMembershipChanges)
} else {
null
TimelineEventFilter.Exclude(customStateEventsFilter)
}
}
}