From 4b157f79150713bbc5fbec59c0024c546751745c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 24 Mar 2021 17:03:36 +0100 Subject: [PATCH] crypto: Don't use the device list manager in onSyncWillProcess --- .../sdk/internal/crypto/DefaultCryptoService.kt | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt index 368febe2d8..8cb5fdbe82 100755 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt @@ -333,18 +333,7 @@ internal class DefaultCryptoService @Inject constructor( fun onSyncWillProcess(isInitialSync: Boolean) { cryptoCoroutineScope.launch(coroutineDispatchers.crypto) { if (isInitialSync) { - try { - // On initial sync, we start all our tracking from - // scratch, so mark everything as untracked. onCryptoEvent will - // be called for all e2e rooms during the processing of the sync, - // at which point we'll start tracking all the users of that room. - deviceListManager.invalidateAllDeviceLists() - // always track my devices? - deviceListManager.startTrackingDeviceList(listOf(userId)) - deviceListManager.refreshOutdatedDeviceLists() - } catch (failure: Throwable) { - Timber.e(failure, "## CRYPTO onSyncWillProcess ") - } + // TODO } } }