mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 02:15:35 +03:00
Fix / Local echo taking too much time
This commit is contained in:
parent
440442bb99
commit
297f202005
1 changed files with 2 additions and 1 deletions
|
@ -28,6 +28,7 @@ import im.vector.matrix.android.internal.database.query.create
|
||||||
import im.vector.matrix.android.internal.database.query.where
|
import im.vector.matrix.android.internal.database.query.where
|
||||||
import im.vector.matrix.android.internal.task.Task
|
import im.vector.matrix.android.internal.task.Task
|
||||||
import im.vector.matrix.android.internal.util.tryTransactionAsync
|
import im.vector.matrix.android.internal.util.tryTransactionAsync
|
||||||
|
import im.vector.matrix.android.internal.util.tryTransactionSync
|
||||||
import io.realm.Realm
|
import io.realm.Realm
|
||||||
import timber.log.Timber
|
import timber.log.Timber
|
||||||
|
|
||||||
|
@ -48,7 +49,7 @@ internal class DefaultEventRelationsAggregationTask(private val monarchy: Monarc
|
||||||
private val SHOULD_HANDLE_SERVER_AGREGGATION = false
|
private val SHOULD_HANDLE_SERVER_AGREGGATION = false
|
||||||
|
|
||||||
override fun execute(params: EventRelationsAggregationTask.Params): Try<Unit> {
|
override fun execute(params: EventRelationsAggregationTask.Params): Try<Unit> {
|
||||||
return monarchy.tryTransactionAsync { realm ->
|
return monarchy.tryTransactionSync { realm ->
|
||||||
update(realm, params.events, params.userId)
|
update(realm, params.events, params.userId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue