Fix issue when quoting event in e2e rooms (Fixes #295)

This commit is contained in:
Benoit Marty
2019-07-04 12:39:59 +02:00
parent a79a6443e7
commit 9d0c50907c
3 changed files with 18 additions and 18 deletions

View File

@ -233,7 +233,7 @@ class RoomDetailViewModel @AssistedInject constructor(@Assisted initialState: Ro
SendMode.QUOTE -> {
val messageContent: MessageContent? =
state.selectedEvent?.annotations?.editSummary?.aggregatedContent?.toModel()
?: state.selectedEvent?.root?.content.toModel()
?: state.selectedEvent?.root?.getClearContent().toModel()
val textMsg = messageContent?.body
val finalText = legacyRiotQuoteText(textMsg, action.text)