mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 02:15:35 +03:00
Timeline : add non empty content to displayable conditions => should probably be removed later if we want to handle this case with special epoxy item.
This commit is contained in:
parent
a7b81a4671
commit
2e2d5b9f86
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ object TimelineDisplayableEvents {
|
|||
}
|
||||
|
||||
fun TimelineEvent.isDisplayable(): Boolean {
|
||||
return TimelineDisplayableEvents.DISPLAYABLE_TYPES.contains(root.type)
|
||||
return TimelineDisplayableEvents.DISPLAYABLE_TYPES.contains(root.type) && !root.content.isNullOrEmpty()
|
||||
}
|
||||
|
||||
fun List<TimelineEvent>.filterDisplayableEvents(): List<TimelineEvent> {
|
||||
|
|
Loading…
Reference in a new issue