Allow configuration to provide multiple account providers. (#4742)

* Allow several account provider in configuration

* Target latest private modules.

* Fix tests

* Target latest private modules.

* Trigger CI

* Fix formatting issue
This commit is contained in:
Benoit Marty 2025-05-20 08:57:01 +02:00 committed by GitHub
parent 150239bcd8
commit 3cf8237d29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 58 additions and 40 deletions

View file

@ -22,7 +22,7 @@ class DefaultEnterpriseService @Inject constructor() : EnterpriseService {
override suspend fun isEnterpriseUser(sessionId: SessionId) = false
override fun defaultHomeserver() = null
override fun defaultHomeserverList(): List<String> = emptyList()
override suspend fun isAllowedToConnectToHomeserver(homeserverUrl: String) = true
override fun semanticColorsLight(): SemanticColors = compoundColorsLight

View file

@ -21,9 +21,9 @@ class DefaultEnterpriseServiceTest {
}
@Test
fun `defaultHomeserver should return null`() {
fun `defaultHomeserverList should return empty list`() {
val defaultEnterpriseService = DefaultEnterpriseService()
assertThat<String?>(defaultEnterpriseService.defaultHomeserver()).isNull()
assertThat(defaultEnterpriseService.defaultHomeserverList()).isEmpty()
}
@Test