mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
[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:
committed by
GitHub
parent
3bbaf8e5e7
commit
355ee95964
+2
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user