mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-28 21:57:17 +00:00
Prevent sending sticker attachments with a blank contentType.
This commit is contained in:
committed by
Cody Henthorne
parent
65e1ffaed4
commit
b298cb6f89
@@ -1887,6 +1887,8 @@ class ConversationFragment :
|
||||
stickerRecord.size,
|
||||
stickerLocator,
|
||||
stickerRecord.contentType
|
||||
.takeIf { it.isNotBlank() }
|
||||
?: MediaUtil.IMAGE_WEBP
|
||||
)
|
||||
|
||||
sendMessageWithoutComposeInput(slide = slide, clearCompose = clearCompose)
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user