Code review fixes.

This commit is contained in:
onurays 2020-02-26 17:55:23 +03:00
parent 04726a1ace
commit 93a687a172
3 changed files with 3 additions and 3 deletions

View file

@ -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()) {

View file

@ -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()

View file

@ -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