element-hq / element-hq/element-android
[SDK] how to filter Timeline Events?
- Dominant language
- Kotlin
- Stars
- 3.7k
- Forks
- 917
- PR merge metrics
- No merged PRs in 30d
Description
This is for Android SDK2.
There used to be the ability to easily filter events in a Timeline instance using the class below:
val tFilter = TimelineEventFilters(filterEdits = true, filterRedacted = true, filterUseless = true, filterTypes = true)
However, at some point, the option to set this in the TimelineSettings was removed, and we can't figure out how/where to filter timeline events. The issue is that, for instance with edited messages, we are now displaying both the original event with the edited message, and the new "replaces" event.
While we can parse through the events and try to figure out which ones to show and hide, it is a bit frustrating that something that was working nicely before was removed.
Contributor guide
Assessment
This issue has not been assessed yet.