This commit is contained in:
Benoit Marty 2020-04-21 13:49:36 +02:00
parent c39a0e4fd5
commit eca3bf0817

View File

@ -44,7 +44,7 @@ import javax.inject.Inject
internal interface SignOutTask : Task<SignOutTask.Params, Unit> { internal interface SignOutTask : Task<SignOutTask.Params, Unit> {
data class Params( data class Params(
val sigOutFromHomeserver: Boolean val signOutFromHomeserver: Boolean
) )
} }
@ -67,7 +67,7 @@ internal class DefaultSignOutTask @Inject constructor(
override suspend fun execute(params: SignOutTask.Params) { override suspend fun execute(params: SignOutTask.Params) {
// It should be done even after a soft logout, to be sure the deviceId is deleted on the // It should be done even after a soft logout, to be sure the deviceId is deleted on the
if (params.sigOutFromHomeserver) { if (params.signOutFromHomeserver) {
Timber.d("SignOut: send request...") Timber.d("SignOut: send request...")
try { try {
executeRequest<Unit>(eventBus) { executeRequest<Unit>(eventBus) {