mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 12:00:03 +03:00
fix maybeBackup called for nothing
This commit is contained in:
parent
e53fbaa11d
commit
76f856b2ea
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue