Bottom sheet event preview for Sticker

This commit is contained in:
Benoit Marty 2019-12-19 12:05:47 +01:00
parent bb9510e59b
commit bf69810f8f

View file

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