@@ -61,6 +61,7 @@ import javax.inject.Inject
61
61
data class MainActivityArgs (
62
62
val clearCache : Boolean = false ,
63
63
val clearCredentials : Boolean = false ,
64
+ val ignoreLogoutServerError : Boolean = false ,
64
65
val isUserLoggedOut : Boolean = false ,
65
66
val isAccountDeactivated : Boolean = false ,
66
67
val isSoftLogout : Boolean = false
@@ -238,6 +239,7 @@ class MainActivity : VectorBaseActivity<ActivityMainBinding>(), UnlockedActivity
238
239
return MainActivityArgs (
239
240
clearCache = argsFromIntent?.clearCache ? : false ,
240
241
clearCredentials = argsFromIntent?.clearCredentials ? : false ,
242
+ ignoreLogoutServerError = argsFromIntent?.ignoreLogoutServerError ? : false ,
241
243
isUserLoggedOut = argsFromIntent?.isUserLoggedOut ? : false ,
242
244
isAccountDeactivated = argsFromIntent?.isAccountDeactivated ? : false ,
243
245
isSoftLogout = argsFromIntent?.isSoftLogout ? : false
@@ -263,7 +265,7 @@ class MainActivity : VectorBaseActivity<ActivityMainBinding>(), UnlockedActivity
263
265
}
264
266
}
265
267
args.clearCredentials -> {
266
- signout(session, onboardingStore, ignoreServerError = false )
268
+ signout(session, onboardingStore, ignoreServerError = args.ignoreLogoutServerError )
267
269
}
268
270
args.clearCache -> {
269
271
lifecycleScope.launch {
0 commit comments