Fix threading issues in the contact functions

This commit is contained in:
Inhishonor
2025-12-17 14:15:59 -08:00
parent b4bce2c1a9
commit 1b145d21b2
@@ -113,8 +113,6 @@ class ContactRepositoryImpl @Inject constructor(
.filter { it.isLoaded }
.filter { it.isValid }
.map { realm.copyFromRealm(it) }
.subscribeOn(AndroidSchedulers.mainThread())
.observeOn(Schedulers.io())
.map { contacts ->
if (mobileOnly) {
contacts.map { contact ->
@@ -140,6 +138,7 @@ class ContactRepositoryImpl @Inject constructor(
}
}
}
.subscribeOn(Schedulers.io())
}
override fun getUnmanagedContactGroups(): Observable<List<ContactGroup>> {