Browse Source

Move setIgnoreRegistrationError call.

pull/3035/head
Benoit Marty 3 months ago committed by Benoit Marty
parent
commit
abc0e7edf7
  1. 4
      features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/tasks/ClearCacheUseCase.kt

4
features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/tasks/ClearCacheUseCase.kt

@ -66,9 +66,9 @@ class DefaultClearCacheUseCase @Inject constructor( @@ -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)
}
}

Loading…
Cancel
Save