Sync MMS upon receiving

This commit is contained in:
Moez Bhatti
2018-01-10 15:47:47 -05:00
parent 42d27a1cca
commit ce6dee2ef4
6 changed files with 61 additions and 9 deletions
@@ -98,6 +98,10 @@ class MessageRepository @Inject constructor(
.findFirst()
}
fun getOrCreateConversation(threadId: Long) {
getConversation(threadId) ?: getConversationFromCp(threadId)
}
fun getOrCreateConversation(address: String): Maybe<Conversation> {
return getOrCreateConversation(listOf(address))
}