Show conversation title in GalleryActivity

This commit is contained in:
Moez Bhatti
2018-02-13 20:45:45 -05:00
parent 943d6bab5f
commit 7255767a9e
4 changed files with 19 additions and 4 deletions
@@ -154,6 +154,13 @@ class MessageRepository @Inject constructor(
.findFirst()
}
fun getMessageForPart(id: Long): Message? {
return Realm.getDefaultInstance()
.where(Message::class.java)
.equalTo("parts.id", id)
.findFirst()
}
fun getPart(id: Long): MmsPart? {
return Realm.getDefaultInstance()
.where(MmsPart::class.java)