mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Make LogoutUseCase.logout return the result of the SDK method.
This commit is contained in:
+3
-3
@@ -35,9 +35,9 @@ class DefaultLogoutUseCase @AssistedInject constructor(
|
||||
override fun create(sessionId: String): DefaultLogoutUseCase
|
||||
}
|
||||
|
||||
override suspend fun logout(ignoreSdkError: Boolean): String {
|
||||
override suspend fun logout(ignoreSdkError: Boolean): String? {
|
||||
val matrixClient = matrixClientProvider.getOrRestore(SessionId(sessionId)).getOrThrow()
|
||||
matrixClient.logout(ignoreSdkError = ignoreSdkError)
|
||||
return sessionId
|
||||
val result = matrixClient.logout(ignoreSdkError = ignoreSdkError)
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user