mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Fix edit message clearing story reply quote.
This commit is contained in:
@@ -122,7 +122,7 @@ object EditMessageProcessor {
|
||||
): InsertResult? {
|
||||
val messageRanges: BodyRangeList? = message.bodyRanges.filter { it.mentionAci == null }.toList().toBodyRangeList()
|
||||
val targetQuote = targetMessage.quote
|
||||
val quote: QuoteModel? = if (targetQuote != null && message.quote != null) {
|
||||
val quote: QuoteModel? = if (targetQuote != null && (message.quote != null || (targetMessage.parentStoryId != null && message.storyContext != null))) {
|
||||
QuoteModel(
|
||||
targetQuote.id,
|
||||
targetQuote.author,
|
||||
@@ -153,6 +153,7 @@ object EditMessageProcessor {
|
||||
groupId = groupId,
|
||||
attachments = attachments,
|
||||
quote = quote,
|
||||
parentStoryId = targetMessage.parentStoryId,
|
||||
sharedContacts = emptyList(),
|
||||
linkPreviews = DataMessageProcessor.getLinkPreviews(message.preview, message.body ?: "", false),
|
||||
mentions = DataMessageProcessor.getMentions(message.bodyRanges),
|
||||
@@ -188,6 +189,7 @@ object EditMessageProcessor {
|
||||
receivedTimeMillis = targetMessage.dateReceived,
|
||||
body = message.body,
|
||||
groupId = groupId,
|
||||
parentStoryId = targetMessage.parentStoryId,
|
||||
expiresIn = targetMessage.expiresIn,
|
||||
isUnidentified = metadata.sealedSender,
|
||||
serverGuid = envelope.serverGuid
|
||||
|
||||
Reference in New Issue
Block a user