mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
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:
+4
@@ -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)
|
||||
}
|
||||
|
||||
+4
-3
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user