Code review fixes.
This commit is contained in:
parent
04726a1ace
commit
93a687a172
@ -169,7 +169,7 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted
|
||||
|
||||
private fun computeMessageBody(timelineEvent: TimelineEvent): CharSequence {
|
||||
if (timelineEvent.root.isRedacted()) {
|
||||
return noticeEventFormatter.getRedactionReason(timelineEvent.root)
|
||||
return noticeEventFormatter.formatRedactedEvent(timelineEvent.root)
|
||||
}
|
||||
|
||||
return when (timelineEvent.root.getClearType()) {
|
||||
|
@ -37,7 +37,7 @@ class DisplayableEventFormatter @Inject constructor(
|
||||
|
||||
fun format(timelineEvent: TimelineEvent, appendAuthor: Boolean): CharSequence {
|
||||
if (timelineEvent.root.isRedacted()) {
|
||||
return noticeEventFormatter.getRedactionReason(timelineEvent.root)
|
||||
return noticeEventFormatter.formatRedactedEvent(timelineEvent.root)
|
||||
}
|
||||
|
||||
if (timelineEvent.root.isEncrypted()
|
||||
|
@ -318,7 +318,7 @@ class NoticeEventFormatter @Inject constructor(private val sessionHolder: Active
|
||||
}
|
||||
}
|
||||
|
||||
fun getRedactionReason(event: Event): String {
|
||||
fun formatRedactedEvent(event: Event): String {
|
||||
return (event
|
||||
.unsignedData
|
||||
?.redactedEvent
|
||||
|
Loading…
x
Reference in New Issue
Block a user