mirror of
https://github.com/element-hq/element-android
synced 2024-12-21 00:42:04 +03:00
crypto: Don't use the device list manager in onSyncWillProcess
This commit is contained in:
parent
4eeb47dc56
commit
4b157f7915
1 changed files with 1 additions and 12 deletions
|
@ -333,18 +333,7 @@ internal class DefaultCryptoService @Inject constructor(
|
||||||
fun onSyncWillProcess(isInitialSync: Boolean) {
|
fun onSyncWillProcess(isInitialSync: Boolean) {
|
||||||
cryptoCoroutineScope.launch(coroutineDispatchers.crypto) {
|
cryptoCoroutineScope.launch(coroutineDispatchers.crypto) {
|
||||||
if (isInitialSync) {
|
if (isInitialSync) {
|
||||||
try {
|
// TODO
|
||||||
// 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 ")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue