forked from GitHub-Mirror/riotX-android
Date change message repeats for each redaction until a normal message
This commit is contained in:
parent
8ca829d538
commit
7966ebef03
@ -11,7 +11,7 @@ Other changes:
|
|||||||
-
|
-
|
||||||
|
|
||||||
Bugfix:
|
Bugfix:
|
||||||
-
|
- Date change message repeats for each redaction until a normal message (#358)
|
||||||
|
|
||||||
Translations:
|
Translations:
|
||||||
-
|
-
|
||||||
|
@ -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
|
||||||
|
@ -50,10 +50,10 @@ class MessageInformationDataFactory @Inject constructor(private val session: Ses
|
|||||||
|
|
||||||
val showInformation =
|
val showInformation =
|
||||||
addDaySeparator
|
addDaySeparator
|
||||||
|| event.senderAvatar != nextEvent?.senderAvatar
|
|| event.senderAvatar != nextEvent?.senderAvatar
|
||||||
|| event.getDisambiguatedDisplayName() != nextEvent?.getDisambiguatedDisplayName()
|
|| event.getDisambiguatedDisplayName() != nextEvent?.getDisambiguatedDisplayName()
|
||||||
|| (nextEvent.root.getClearType() != EventType.MESSAGE && nextEvent.root.getClearType() != EventType.ENCRYPTED)
|
|| (nextEvent.root.getClearType() != EventType.MESSAGE && nextEvent.root.getClearType() != EventType.ENCRYPTED)
|
||||||
|| isNextMessageReceivedMoreThanOneHourAgo
|
|| isNextMessageReceivedMoreThanOneHourAgo
|
||||||
|
|
||||||
val time = dateFormatter.formatMessageHour(date)
|
val time = dateFormatter.formatMessageHour(date)
|
||||||
val avatarUrl = event.senderAvatar
|
val avatarUrl = event.senderAvatar
|
||||||
|
Loading…
Reference in New Issue
Block a user