Ensure that the battery optimization banner is not displayed after an internal clear cache.

This commit is contained in:
Benoit Marty 2025-06-17 16:26:33 +02:00 committed by Benoit Marty
parent c61b118f42
commit d8095faa43
8 changed files with 47 additions and 1 deletions

View file

@ -59,6 +59,7 @@ class DefaultClearCacheUseCase @Inject constructor(
seenInvitesStore.clear()
// Ensure any error will be displayed again
pushService.setIgnoreRegistrationError(matrixClient.sessionId, false)
pushService.resetBatteryOptimizationState()
// Ensure the app is restarted
defaultCacheService.onClearedCache(matrixClient.sessionId)
}