feat(healthchat): drop Element links, labs, bug reports and location sharing

Bloom gradient fades the brand blue instead of Compound's green.
This commit is contained in:
Sedat Qaja
2026-10-20 13:39:31 +02:00
parent 9df5d95732
commit 67dadb4571
9 changed files with 64 additions and 25 deletions
@@ -17,6 +17,7 @@ import io.element.android.features.location.api.buildTimeMapTilerConfig
import io.element.android.libraries.di.SessionScope
import io.element.android.libraries.di.annotations.SessionCoroutineScope
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.flow
@@ -35,4 +36,7 @@ class DefaultLocationService(
started = SharingStarted.Eagerly,
initialValue = buildTimeMapTilerConfig(),
)
// HealthChat fork: location sharing is not offered, even if the homeserver advertises a map provider.
override fun isServiceAvailable(): StateFlow<Boolean> = MutableStateFlow(false)
}
@@ -29,7 +29,7 @@ class DefaultLocationServiceTest {
)
runCurrent()
assertThat(locationService.mapTilerConfig.value).isEqualTo(buildTimeMapTilerConfig())
assertThat(locationService.isServiceAvailable().value).isEqualTo(buildTimeMapTilerConfig() != null)
assertThat(locationService.isServiceAvailable().value).isFalse()
}
@Test
@@ -39,7 +39,7 @@ class DefaultLocationServiceTest {
)
runCurrent()
assertThat(locationService.mapTilerConfig.value).isEqualTo(buildTimeMapTilerConfig())
assertThat(locationService.isServiceAvailable().value).isEqualTo(buildTimeMapTilerConfig() != null)
assertThat(locationService.isServiceAvailable().value).isFalse()
}
@Test
@@ -50,7 +50,8 @@ class DefaultLocationServiceTest {
)
runCurrent()
assertThat(locationService.mapTilerConfig.value).isEqualTo(config)
assertThat(locationService.isServiceAvailable().value).isTrue()
// HealthChat fork: the service is never available, even with a homeserver config.
assertThat(locationService.isServiceAvailable().value).isFalse()
}
private fun TestScope.createDefaultLocationService(