offload megolm backup import off crypto thread

This commit is contained in:
Valere 2020-10-26 11:24:53 +01:00
parent 2144879e73
commit dbb14e6313

View file

@ -690,7 +690,7 @@ internal class DefaultKeysBackupService @Inject constructor(
// Get backed up keys from the homeserver
val data = getKeys(sessionId, roomId, keysVersionResult.version!!)
withContext(coroutineDispatchers.crypto) {
withContext(coroutineDispatchers.computation) {
val sessionsData = ArrayList<MegolmSessionData>()
// Restore that data
var sessionsFromHsCount = 0