mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +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:
@@ -39,6 +39,7 @@ enum HomeScreenViewAction {
|
||||
case confirmRecoveryKey
|
||||
case resetEncryption
|
||||
case skipRecoveryKeyConfirmation
|
||||
case dismissNewSoundBanner
|
||||
case updateVisibleItemRange(Range<Int>)
|
||||
case globalSearch
|
||||
case markRoomAsUnread(roomIdentifier: String)
|
||||
@@ -92,6 +93,7 @@ struct HomeScreenViewState: BindableState {
|
||||
var userAvatarURL: URL?
|
||||
|
||||
var securityBannerMode = HomeScreenSecurityBannerMode.none
|
||||
var shouldShowNewSoundBanner = false
|
||||
|
||||
var requiresExtraAccountSetup = false
|
||||
|
||||
@@ -134,6 +136,10 @@ struct HomeScreenViewState: BindableState {
|
||||
var shouldShowFilters: Bool {
|
||||
!bindings.isSearchFieldFocused && roomListMode == .rooms
|
||||
}
|
||||
|
||||
var shouldShowBanner: Bool {
|
||||
securityBannerMode.isShown || shouldShowNewSoundBanner
|
||||
}
|
||||
}
|
||||
|
||||
struct HomeScreenViewStateBindings {
|
||||
|
||||
Reference in New Issue
Block a user