crypto: Remove the one-time key uploader since Rust is handling this
This commit is contained in:
parent
ab8d365c10
commit
7f86f512ed
@ -152,8 +152,6 @@ internal class DefaultCryptoService @Inject constructor(
|
|||||||
//
|
//
|
||||||
private val objectSigner: ObjectSigner,
|
private val objectSigner: ObjectSigner,
|
||||||
//
|
//
|
||||||
private val oneTimeKeysUploader: OneTimeKeysUploader,
|
|
||||||
//
|
|
||||||
private val roomDecryptorProvider: RoomDecryptorProvider,
|
private val roomDecryptorProvider: RoomDecryptorProvider,
|
||||||
// The verification service.
|
// The verification service.
|
||||||
private val verificationService: DefaultVerificationService,
|
private val verificationService: DefaultVerificationService,
|
||||||
@ -350,7 +348,6 @@ internal class DefaultCryptoService @Inject constructor(
|
|||||||
uploadDeviceKeys()
|
uploadDeviceKeys()
|
||||||
}
|
}
|
||||||
|
|
||||||
// oneTimeKeysUploader.maybeUploadOneTimeKeys()
|
|
||||||
// this can throw if no backup
|
// this can throw if no backup
|
||||||
tryOrNull {
|
tryOrNull {
|
||||||
keysBackupService.checkAndStartKeysBackup()
|
keysBackupService.checkAndStartKeysBackup()
|
||||||
@ -459,14 +456,9 @@ internal class DefaultCryptoService @Inject constructor(
|
|||||||
if (syncResponse.deviceLists != null) {
|
if (syncResponse.deviceLists != null) {
|
||||||
deviceListManager.handleDeviceListsChanges(syncResponse.deviceLists.changed, syncResponse.deviceLists.left)
|
deviceListManager.handleDeviceListsChanges(syncResponse.deviceLists.changed, syncResponse.deviceLists.left)
|
||||||
}
|
}
|
||||||
if (syncResponse.deviceOneTimeKeysCount != null) {
|
|
||||||
val currentCount = syncResponse.deviceOneTimeKeysCount.signedCurve25519 ?: 0
|
|
||||||
oneTimeKeysUploader.updateOneTimeKeyCount(currentCount)
|
|
||||||
}
|
|
||||||
if (isStarted()) {
|
if (isStarted()) {
|
||||||
// Make sure we process to-device messages before generating new one-time-keys #2782
|
// Make sure we process to-device messages before generating new one-time-keys #2782
|
||||||
deviceListManager.refreshOutdatedDeviceLists()
|
deviceListManager.refreshOutdatedDeviceLists()
|
||||||
// oneTimeKeysUploader.maybeUploadOneTimeKeys()
|
|
||||||
incomingGossipingRequestManager.processReceivedGossipingRequests()
|
incomingGossipingRequestManager.processReceivedGossipingRequests()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user