Prevent sending sticker attachments with a blank contentType.

This commit is contained in:
Jeffrey Starke
2025-04-25 11:22:12 -04:00
committed by Cody Henthorne
parent 65e1ffaed4
commit b298cb6f89
2 changed files with 3 additions and 1 deletions

View File

@@ -1887,6 +1887,8 @@ class ConversationFragment :
stickerRecord.size,
stickerLocator,
stickerRecord.contentType
.takeIf { it.isNotBlank() }
?: MediaUtil.IMAGE_WEBP
)
sendMessageWithoutComposeInput(slide = slide, clearCompose = clearCompose)

View File

@@ -4,7 +4,7 @@ import android.net.Uri
import org.thoughtcrime.securesms.mms.PartAuthority
/**
* Represents a record for a sticker pack in the [StickerTable].
* Represents a record for a sticker pack in the [org.thoughtcrime.securesms.database.StickerTable].
*/
data class StickerRecord(
@JvmField val rowId: Long,