Date change message repeats for each redaction until a normal message

This commit is contained in:
Valere 2019-08-18 15:12:59 -04:00
parent 8ca829d538
commit 7966ebef03
3 changed files with 7 additions and 6 deletions

View File

@ -11,7 +11,7 @@ Other changes:
- -
Bugfix: Bugfix:
- - Date change message repeats for each redaction until a normal message (#358)
Translations: Translations:
- -

View File

@ -56,7 +56,8 @@ fun TimelineEvent.isDisplayable(showHiddenEvent: Boolean): Boolean {
return false return false
} }
if (root.content.isNullOrEmpty()) { if (root.content.isNullOrEmpty()) {
return false //redacted events have empty content but are displayable
return root.unsignedData?.redactedEvent != null
} }
//Edits should be filtered out! //Edits should be filtered out!
if (EventType.MESSAGE == root.type if (EventType.MESSAGE == root.type