Hide Element Call entry point if Element Call service is not available. (#4783)
* Hide Element Call entry point if Element Call service is not available. * No need to preview the case RoomCallState.Unavailable * Hide start call action from user profile if Element Call is not available. * Add mising `use` and cover the problem by a test. * Update screenshots * Update enterprise submodule ref. * Ensure `enterpriseService.isElementCallAvailable()` is not called several times. And fix unit tests on CI --------- Co-authored-by: ElementBot <android@element.io>
This commit is contained in:
parent
730fb684b0
commit
5b9da3c41b
17 changed files with 146 additions and 45 deletions
|
|
@ -93,7 +93,15 @@ class FakeBaseRoom(
|
|||
return powerLevelsResult()
|
||||
}
|
||||
|
||||
override fun destroy() = Unit
|
||||
private var isDestroyed = false
|
||||
|
||||
override fun destroy() {
|
||||
isDestroyed = true
|
||||
}
|
||||
|
||||
fun assertDestroyed() {
|
||||
check(isDestroyed) { "Room should be destroyed" }
|
||||
}
|
||||
|
||||
override suspend fun userDisplayName(userId: UserId): Result<String?> = simulateLongTask {
|
||||
userDisplayNameResult(userId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue