mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user