mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-18 13:00:18 +03:00
Replaces doWithRealm with writeAsync
This commit is contained in:
parent
abe07c73a4
commit
90b063f0de
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ internal class SyncResponsePostTreatmentAggregatorHandler @Inject constructor(
|
||||||
|
|
||||||
private fun List<User>.saveLocally() {
|
private fun List<User>.saveLocally() {
|
||||||
val userEntities = map { user -> UserEntityFactory.create(user) }
|
val userEntities = map { user -> UserEntityFactory.create(user) }
|
||||||
monarchy.doWithRealm {
|
monarchy.writeAsync {
|
||||||
it.insertOrUpdate(userEntities)
|
it.insertOrUpdate(userEntities)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue