mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Fix parsing and display for text based MMS parts
This commit is contained in:
@@ -101,6 +101,13 @@ open class Message : RealmObject() {
|
||||
return isOutgoingMms || isOutgoingSms
|
||||
}
|
||||
|
||||
fun getText() : String {
|
||||
return when {
|
||||
isSms() -> body
|
||||
else -> parts.filter { it.isText() }.joinToString("") { it.text ?: "" }
|
||||
}
|
||||
}
|
||||
|
||||
fun isSending(): Boolean {
|
||||
return !isFailedMessage() && isOutgoingMessage()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user