Safer code.
This commit is contained in:
parent
202a7d0544
commit
74725bc89f
1 changed files with 3 additions and 1 deletions
|
|
@ -115,7 +115,9 @@ class DeveloperSettingsPresenter @Inject constructor(
|
||||||
DeveloperSettingsEvents.ClearCache -> coroutineScope.clearCache(clearCacheAction)
|
DeveloperSettingsEvents.ClearCache -> coroutineScope.clearCache(clearCacheAction)
|
||||||
is DeveloperSettingsEvents.SetSimplifiedSlidingSyncEnabled -> coroutineScope.launch {
|
is DeveloperSettingsEvents.SetSimplifiedSlidingSyncEnabled -> coroutineScope.launch {
|
||||||
appPreferencesStore.setSimplifiedSlidingSyncEnabled(event.isEnabled)
|
appPreferencesStore.setSimplifiedSlidingSyncEnabled(event.isEnabled)
|
||||||
logoutUseCase.logout(ignoreSdkError = true)
|
runCatching {
|
||||||
|
logoutUseCase.logout(ignoreSdkError = true)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
is DeveloperSettingsEvents.SetHideImagesAndVideos -> coroutineScope.launch {
|
is DeveloperSettingsEvents.SetHideImagesAndVideos -> coroutineScope.launch {
|
||||||
appPreferencesStore.setHideImagesAndVideos(event.value)
|
appPreferencesStore.setHideImagesAndVideos(event.value)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue