Commit 823f55ff authored by Sebastian's avatar Sebastian Committed by Nico
Browse files

Avoid sending empty strings along images

parent 3bb7b1a4
Pipeline #9395 passed with stage
in 2 minutes and 18 seconds
......@@ -175,7 +175,7 @@ constructor(
runOnDbThreadWithTransaction(false) { txn ->
try {
val start = LogUtils.now()
val m = createMessage(txn, contactId, groupId, trimmed, headers)
val m = createMessage(txn, contactId, groupId, trimmed.ifBlank { null }, headers)
messagingManager.addLocalMessage(txn, m)
LOG.logDuration("Storing message", start)
......@@ -252,7 +252,7 @@ constructor(
txn: Transaction,
contactId: ContactId,
groupId: GroupId,
text: String,
text: String?,
headers: List<AttachmentHeader>,
): PrivateMessage {
val timestamp = conversationManager.getTimestampForOutgoingMessage(txn, contactId)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment