Save outgoing message bodies as trimmed.

This commit is contained in:
Greyson Parrelli
2025-01-31 15:47:32 -05:00
parent fee7d20cc6
commit 27a3cc0305

View File

@@ -3074,7 +3074,7 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
val bodyRanges = message.bodyRanges.adjustBodyRanges(updatedBodyAndMentions.bodyAdjustments)
val (messageId, insertedAttachments) = insertMediaMessage(
threadId = threadId,
body = updatedBodyAndMentions.bodyAsString,
body = updatedBodyAndMentions.bodyAsString?.trim(),
attachments = message.attachments,
quoteAttachments = quoteAttachments,
sharedContacts = message.sharedContacts,