mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 11:38:51 +01:00
Fix crash when trying to sync MMS with no parts
This commit is contained in:
@@ -113,7 +113,7 @@ class CursorToMessage @Inject constructor(
|
||||
private fun getMmsParts(contentId: Long): List<MmsPart> {
|
||||
return context.contentResolver.query(CursorToPart.CONTENT_URI, null,
|
||||
"${Telephony.Mms.Part.MSG_ID} = ?", arrayOf(contentId.toString()), null)
|
||||
.map { cursorToPart.map(it) }
|
||||
?.map { cursorToPart.map(it) } ?: listOf()
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
Reference in New Issue
Block a user