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
1 changed files with 1 additions and 1 deletions

View File

@ -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