Fix single MMS sync

This commit is contained in:
Moez Bhatti
2021-02-23 23:50:27 -05:00
parent 3d84ccceea
commit 84923d1dea
3 changed files with 13 additions and 3 deletions
@@ -251,6 +251,12 @@ class SyncRepositoryImpl @Inject constructor(
cursorToMessage.map(Pair(cursor, columnsMap)).apply {
existingId?.let { this.id = it }
if (isMms()) {
parts = RealmList<MmsPart>().apply {
addAll(cursorToPart.getPartsCursor(contentId)?.map { cursorToPart.map(it) }.orEmpty())
}
}
conversationRepo.getOrCreateConversation(threadId)
insertOrUpdate()
}