Avoid restoring several MatrixClient

This commit is contained in:
Benoit Marty 2024-06-18 18:04:30 +02:00
parent 7b5e7c4c00
commit a8cd659b1f
5 changed files with 32 additions and 37 deletions

View file

@ -31,6 +31,7 @@ interface MatrixAuthenticationService {
/**
* Restore a session from a [sessionId].
* Do not restore anything it the access token is not valid anymore.
* Generally this method should not be used directly, prefer using [MatrixClientProvider.getOrRestore] instead.
*/
suspend fun restoreSession(sessionId: SessionId): Result<MatrixClient>
fun getHomeserverDetails(): StateFlow<MatrixHomeServerDetails?>