From 050519e998b4a15c8858d6c6830765b7acd67e19 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 13 Dec 2019 09:22:24 +0100 Subject: [PATCH] Soft Logout - add a TODO, waiting for Synapse bugfix --- .../matrix/android/internal/session/signout/SignOutTask.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/signout/SignOutTask.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/signout/SignOutTask.kt index d0ad77c8e4..cc33c24f1c 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/signout/SignOutTask.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/signout/SignOutTask.kt @@ -54,9 +54,10 @@ internal class DefaultSignOutTask @Inject constructor(private val context: Conte @UserMd5 private val userMd5: String) : SignOutTask { override suspend fun execute(params: SignOutTask.Params) { - Timber.d("SignOut: send request...") - + // TODO It should be done even after a soft logout, to be sure the deviceId is deleted on the + // TODO homeserver but https://github.com/matrix-org/synapse/issues/5755 if (params.sigOutFromHomeserver) { + Timber.d("SignOut: send request...") executeRequest { apiCall = signOutAPI.signOut() }