Compute message body for encrypted messages too.

This commit is contained in:
onurays 2020-02-13 18:09:26 +03:00
parent f28e4cf991
commit fd135e1eeb
1 changed files with 1 additions and 0 deletions

View File

@ -170,6 +170,7 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted
private fun computeMessageBody(timelineEvent: TimelineEvent): CharSequence { private fun computeMessageBody(timelineEvent: TimelineEvent): CharSequence {
return when (timelineEvent.root.getClearType()) { return when (timelineEvent.root.getClearType()) {
EventType.MESSAGE, EventType.MESSAGE,
EventType.ENCRYPTED,
EventType.STICKER -> { EventType.STICKER -> {
when (timelineEvent.root.isRedacted()) { when (timelineEvent.root.isRedacted()) {
true -> getRedactionReason(timelineEvent) true -> getRedactionReason(timelineEvent)