mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Safer code.
This commit is contained in:
committed by
Benoit Marty
parent
25e3aa6fc4
commit
d5bf8ae42f
+3
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user