Safer code.

This commit is contained in:
Benoit Marty
2024-10-14 11:56:11 +02:00
committed by Benoit Marty
parent 202a7d0544
commit 74725bc89f

View File

@@ -115,7 +115,9 @@ class DeveloperSettingsPresenter @Inject constructor(
DeveloperSettingsEvents.ClearCache -> coroutineScope.clearCache(clearCacheAction)
is DeveloperSettingsEvents.SetSimplifiedSlidingSyncEnabled -> coroutineScope.launch {
appPreferencesStore.setSimplifiedSlidingSyncEnabled(event.isEnabled)
logoutUseCase.logout(ignoreSdkError = true)
runCatching {
logoutUseCase.logout(ignoreSdkError = true)
}
}
is DeveloperSettingsEvents.SetHideImagesAndVideos -> coroutineScope.launch {
appPreferencesStore.setHideImagesAndVideos(event.value)