forked from upstream-mirrors/quik
#1012 - Show video attachments
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
*/
|
||||
package model
|
||||
|
||||
import androidx.net.toUri
|
||||
import io.realm.RealmObject
|
||||
import io.realm.RealmResults
|
||||
import io.realm.annotations.LinkingObjects
|
||||
@@ -27,11 +28,11 @@ open class MmsPart : RealmObject() {
|
||||
|
||||
@PrimaryKey var id: Long = 0
|
||||
var type: String = ""
|
||||
|
||||
var text: String? = null
|
||||
var image: String? = null
|
||||
|
||||
@LinkingObjects("parts")
|
||||
val messages: RealmResults<Message>? = null
|
||||
|
||||
fun getUri() = "content://mms/part/$id".toUri()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user