mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Code review fixes.
This commit is contained in:
parent
04726a1ace
commit
93a687a172
3 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue