Avoid empty json in filter

This commit is contained in:
Benoit Marty 2021-03-04 22:19:30 +01:00
parent b25f13cceb
commit f28714c5b2

View File

@ -56,11 +56,11 @@ internal object FilterFactory {
)
}
private fun createElementTimelineFilter(): RoomEventFilter {
return RoomEventFilter().apply {
private fun createElementTimelineFilter(): RoomEventFilter? {
return null // RoomEventFilter().apply {
// TODO Enable this for optimization
// types = listOfSupportedEventTypes.toMutableList()
}
// }
}
private fun createElementStateFilter(): RoomEventFilter {