forked from upstream-mirrors/quik
Fix threading issues in the contact functions
This commit is contained in:
@@ -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>> {
|
||||
|
||||
Reference in New Issue
Block a user