Disable hazeEffect if spaces are not enabled.

Give us time to fix the transparency issue that has been discovered on the navigation bar.
This commit is contained in:
Benoit Marty 2025-07-09 15:09:33 +02:00
parent cb1db019f1
commit dfd5343397

View file

@ -182,10 +182,15 @@ private fun HomeScaffold(
displayFilters = roomListState.displayFilters && state.currentHomeNavigationBarItem == HomeNavigationBarItem.Chats,
filtersState = roomListState.filtersState,
canReportBug = state.canReportBug,
modifier = Modifier.hazeEffect(
state = hazeState,
style = HazeMaterials.thick(),
)
modifier = if (state.isSpaceFeatureEnabled) {
Modifier.hazeEffect(
state = hazeState,
style = HazeMaterials.thick(),
)
} else {
Modifier
.background(ElementTheme.colors.bgCanvasDefault)
}
)
},
bottomBar = {