diff --git a/features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/tasks/ClearCacheUseCase.kt b/features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/tasks/ClearCacheUseCase.kt index effbe158d2..33fbab8f39 100644 --- a/features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/tasks/ClearCacheUseCase.kt +++ b/features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/tasks/ClearCacheUseCase.kt @@ -66,9 +66,9 @@ class DefaultClearCacheUseCase @Inject constructor( ftueService.reset() // Clear migration screen store migrationScreenStore.reset() - // Ensure the app is restarted - defaultCacheIndexProvider.onClearedCache(matrixClient.sessionId) // Ensure any error will be displayed again pushService.setIgnoreRegistrationError(matrixClient.sessionId, false) + // Ensure the app is restarted + defaultCacheIndexProvider.onClearedCache(matrixClient.sessionId) } }