offload megolm backup import off crypto thread
This commit is contained in:
parent
2144879e73
commit
dbb14e6313
|
@ -690,7 +690,7 @@ internal class DefaultKeysBackupService @Inject constructor(
|
||||||
// Get backed up keys from the homeserver
|
// Get backed up keys from the homeserver
|
||||||
val data = getKeys(sessionId, roomId, keysVersionResult.version!!)
|
val data = getKeys(sessionId, roomId, keysVersionResult.version!!)
|
||||||
|
|
||||||
withContext(coroutineDispatchers.crypto) {
|
withContext(coroutineDispatchers.computation) {
|
||||||
val sessionsData = ArrayList<MegolmSessionData>()
|
val sessionsData = ArrayList<MegolmSessionData>()
|
||||||
// Restore that data
|
// Restore that data
|
||||||
var sessionsFromHsCount = 0
|
var sessionsFromHsCount = 0
|
||||||
|
|
Loading…
Reference in New Issue