forked from upstream-mirrors/quik
Create generic file binder to allow viewing any unhandled mms part type
This commit is contained in:
@@ -105,6 +105,7 @@ open class Message : RealmObject() {
|
||||
isSms() -> body
|
||||
|
||||
else -> parts
|
||||
.filter { it.type == "text/plain" }
|
||||
.mapNotNull { it.text }
|
||||
.joinToString("\n") { text -> text }
|
||||
}
|
||||
|
||||
@@ -28,6 +28,8 @@ open class MmsPart : RealmObject() {
|
||||
|
||||
@PrimaryKey var id: Long = 0
|
||||
var type: String = ""
|
||||
var seq: Int = -1
|
||||
var name: String? = null
|
||||
var text: String? = null
|
||||
|
||||
@LinkingObjects("parts")
|
||||
|
||||
Reference in New Issue
Block a user