Merge pull request #493 from vector-im/feature/fix_358

Date change message repeats for each redaction until a normal message
This commit is contained in:
Valere 2019-08-27 04:34:35 -04:00 committed by GitHub
commit be4fc5cce6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 5 deletions

View file

@ -11,6 +11,7 @@ Other changes:
-
Bugfix:
- Date change message repeats for each redaction until a normal message (#358)
- Slide-in reply icon is distorted (#423)
Translations:

View file

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