mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Improve API and documentation
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ class DefaultEnterpriseService : EnterpriseService {
|
||||
override fun defaultHomeserverList(): List<String> = emptyList()
|
||||
override suspend fun isAllowedToConnectToHomeserver(homeserverUrl: String) = true
|
||||
|
||||
override suspend fun overrideBrandColor(brandColor: String?) = Unit
|
||||
override suspend fun overrideBrandColor(sessionId: SessionId?, brandColor: String?) = Unit
|
||||
|
||||
@Composable
|
||||
override fun semanticColorsLight(): State<SemanticColors> {
|
||||
|
||||
+2
-2
@@ -51,7 +51,7 @@ class DefaultEnterpriseServiceTest {
|
||||
}.test {
|
||||
val initialState = awaitItem()
|
||||
assertThat(initialState).isEqualTo(compoundColorsLight)
|
||||
defaultEnterpriseService.overrideBrandColor("#87654321")
|
||||
defaultEnterpriseService.overrideBrandColor(A_SESSION_ID, "#87654321")
|
||||
expectNoEvents()
|
||||
}
|
||||
}
|
||||
@@ -64,7 +64,7 @@ class DefaultEnterpriseServiceTest {
|
||||
}.test {
|
||||
val initialState = awaitItem()
|
||||
assertThat(initialState).isEqualTo(compoundColorsDark)
|
||||
defaultEnterpriseService.overrideBrandColor("#87654321")
|
||||
defaultEnterpriseService.overrideBrandColor(A_SESSION_ID, "#87654321")
|
||||
expectNoEvents()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user