[merge] Disable another new useless reply fallback calculation

Change-Id: Ia090dac36ce08e7ea8e8bc0fe67a3e316b988bb9
This commit is contained in:
SpiritCroc 2023-02-23 12:12:28 +01:00
parent 65a1a6e90f
commit 4065d21b7e
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ fun TimelineEvent.getLastMessageContent(): MessageContent? {
fun TimelineEvent.getLastEditNewContent(): Content? { fun TimelineEvent.getLastEditNewContent(): Content? {
val lastContent = annotations?.editSummary?.latestEdit?.getClearContent()?.toModel<MessageContent>()?.newContent val lastContent = annotations?.editSummary?.latestEdit?.getClearContent()?.toModel<MessageContent>()?.newContent
return if (isReply()) { return if (isReply() && false) { // SC: we have rich replies
val previousFormattedBody = root.getClearContent().toModel<MessageTextContent>()?.formattedBody val previousFormattedBody = root.getClearContent().toModel<MessageTextContent>()?.formattedBody
if (previousFormattedBody?.isNotEmpty() == true) { if (previousFormattedBody?.isNotEmpty() == true) {
val lastMessageContent = lastContent.toModel<MessageTextContent>() val lastMessageContent = lastContent.toModel<MessageTextContent>()