[Element Call] Keep MatrixClient alive while the call is working (#1695)

* Element Call: keep MatrixClient alive to get event updates
This commit is contained in:
Jorge Martin Espinosa 2023-10-31 16:58:33 +01:00 committed by GitHub
parent 06514d8be5
commit f7f3925fc9
8 changed files with 125 additions and 16 deletions

View file

@ -24,4 +24,6 @@ class FakeMatrixClientProvider(
private val getClient: (SessionId) -> Result<MatrixClient> = { Result.success(FakeMatrixClient()) }
) : MatrixClientProvider {
override suspend fun getOrRestore(sessionId: SessionId): Result<MatrixClient> = getClient(sessionId)
override fun getOrNull(sessionId: SessionId): MatrixClient? = getClient(sessionId).getOrNull()
}