mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Safer code.
This commit is contained in:
committed by
Benoit Marty
parent
25e3aa6fc4
commit
d5bf8ae42f
+2
@@ -115,8 +115,10 @@ 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)
|
||||||
|
runCatching {
|
||||||
logoutUseCase.logout(ignoreSdkError = true)
|
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