Use the new notification sound. (#4572)

* Use the new notification sound.

* Add a banner informing the user of the new notification sound.
This commit is contained in:
Doug
2025-10-03 21:09:50 +01:00
committed by GitHub
parent a226c99492
commit 7e7cf1587f
18 changed files with 133 additions and 2 deletions
@@ -122,14 +122,16 @@ struct HomeScreenContent: View {
@ViewBuilder
private var topSection: some View {
// An empty VStack causes glitches within the room list
if context.viewState.shouldShowFilters || context.viewState.securityBannerMode.isShown {
if context.viewState.shouldShowFilters || context.viewState.shouldShowBanner {
VStack(spacing: 0) {
if context.viewState.shouldShowFilters {
RoomListFiltersView(state: $context.filtersState)
}
if case let .show(state) = context.viewState.securityBannerMode {
HomeScreenRecoveryKeyConfirmationBanner(state: state, context: context)
} else if context.viewState.shouldShowNewSoundBanner {
HomeScreenNewSoundBanner { context.send(viewAction: .dismissNewSoundBanner) }
}
}
.background(Color.compound.bgCanvasDefault)