mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 11:26:01 +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() {
|
||||
val userEntities = map { user -> UserEntityFactory.create(user) }
|
||||
monarchy.doWithRealm {
|
||||
monarchy.writeAsync {
|
||||
it.insertOrUpdate(userEntities)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue