mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 16:22:49 +00:00
Exclude custom state events from the timeline (#7854)
Don't display custom state events not supported by the SDK
This commit is contained in:
committed by
GitHub
parent
48d6b5cadf
commit
b038e30d28
+5
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user