Soft Logout - add a TODO, waiting for Synapse bugfix

This commit is contained in:
Benoit Marty 2019-12-13 09:22:24 +01:00
parent 1af44ce5f7
commit 050519e998
1 changed files with 3 additions and 2 deletions

View File

@ -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<Unit> {
apiCall = signOutAPI.signOut()
}