Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 922fa569 authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Don't try to sync message if it has unreadable id

parent 0156b224
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ class SyncRepositoryImpl @Inject constructor(
            else -> return Flowable.empty()
        }

        val id = tryOrNull { ContentUris.parseId(uri) }
        val id = tryOrNull { ContentUris.parseId(uri) } ?: return Flowable.empty()

        // Check if the message already exists, so we can reuse the id
        val existingId = Realm.getDefaultInstance().use { realm ->