fix maybeBackup called for nothing

This commit is contained in:
valere 2023-02-03 13:42:07 +01:00
parent e53fbaa11d
commit 76f856b2ea

View file

@ -322,8 +322,6 @@ internal class RustCryptoService @Inject constructor(
// keys claim request to be sent out.
// This could be omitted but then devices might be waiting for the next
outgoingRequestsProcessor.processOutgoingRequests(olmMachine)
keysBackupService.maybeBackupKeys()
}
}
@ -596,6 +594,9 @@ internal class RustCryptoService @Inject constructor(
sessionId: String,
) {
megolmSessionImportManager.dispatchNewSession(roomId, sessionId)
cryptoCoroutineScope.launch {
keysBackupService.maybeBackupKeys()
}
}
override suspend fun onSyncWillProcess(isInitialSync: Boolean) {