mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Compute message body for encrypted messages too.
This commit is contained in:
parent
f28e4cf991
commit
fd135e1eeb
@ -170,6 +170,7 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted
|
||||
private fun computeMessageBody(timelineEvent: TimelineEvent): CharSequence {
|
||||
return when (timelineEvent.root.getClearType()) {
|
||||
EventType.MESSAGE,
|
||||
EventType.ENCRYPTED,
|
||||
EventType.STICKER -> {
|
||||
when (timelineEvent.root.isRedacted()) {
|
||||
true -> getRedactionReason(timelineEvent)
|
||||
|
Loading…
Reference in New Issue
Block a user