mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Remove MatrixAuthenticationService.getLatestSessionId()
This commit is contained in:
committed by
Benoit Marty
parent
6f827bb090
commit
92b8be99d1
-4
@@ -81,10 +81,6 @@ class RustMatrixAuthenticationService(
|
||||
.also { sessionPaths = it }
|
||||
}
|
||||
|
||||
override suspend fun getLatestSessionId(): SessionId? = withContext(coroutineDispatchers.io) {
|
||||
sessionStore.getLatestSession()?.userId?.let { SessionId(it) }
|
||||
}
|
||||
|
||||
override suspend fun restoreSession(sessionId: SessionId): Result<MatrixClient> = withContext(coroutineDispatchers.io) {
|
||||
runCatchingExceptions {
|
||||
val sessionData = sessionStore.getSession(sessionId.value)
|
||||
|
||||
Reference in New Issue
Block a user