mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 19:38:52 +01:00
Don't throw warning if MMS is of type application/smil
This commit is contained in:
@@ -30,12 +30,9 @@ open class MmsPart : RealmObject() {
|
||||
var text: String? = null
|
||||
var image: String? = null
|
||||
|
||||
fun isImage()
|
||||
= "image/jpeg" == type
|
||||
|| "image/bmp" == type
|
||||
|| "image/gif" == type
|
||||
|| "image/jpg" == type
|
||||
|| "image/png" == type
|
||||
fun isSmil() = "application/smil" == type
|
||||
|
||||
fun isImage() = listOf("image/jpeg", "image/bmp", "image/gif", "image/jpg", "image/png").contains(type)
|
||||
|
||||
fun isText() = "text/plain" == type
|
||||
|
||||
|
||||
Reference in New Issue
Block a user