mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Bottom sheet event preview for Sticker
This commit is contained in:
parent
bb9510e59b
commit
bf69810f8f
1 changed files with 2 additions and 1 deletions
|
@ -170,7 +170,8 @@ class MessageActionsViewModel @AssistedInject constructor(@Assisted
|
|||
|
||||
private fun computeMessageBody(timelineEvent: Async<TimelineEvent>): CharSequence? {
|
||||
return when (timelineEvent()?.root?.getClearType()) {
|
||||
EventType.MESSAGE -> {
|
||||
EventType.MESSAGE,
|
||||
EventType.STICKER -> {
|
||||
val messageContent: MessageContent? = timelineEvent()?.getLastMessageContent()
|
||||
if (messageContent is MessageTextContent && messageContent.format == MessageType.FORMAT_MATRIX_HTML) {
|
||||
val html = messageContent.formattedBody
|
||||
|
|
Loading…
Reference in a new issue