mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Added a disclaimer in Notification Settings for "Mentions Only" (#2081)
This commit is contained in:
+9
@@ -61,6 +61,15 @@ struct RoomNotificationSettingsScreenViewState: BindableState {
|
||||
var navigationTitle: String
|
||||
var customSettingsSectionHeader: String
|
||||
var deletingCustomSetting = false
|
||||
var shouldDisplayMentionsOnlyDisclaimer = true
|
||||
|
||||
func description(mode: RoomNotificationModeProxy) -> String? {
|
||||
guard mode == .mentionsAndKeywordsOnly,
|
||||
shouldDisplayMentionsOnlyDisclaimer else {
|
||||
return nil
|
||||
}
|
||||
return L10n.screenRoomNotificationSettingsMentionsOnlyDisclaimer
|
||||
}
|
||||
|
||||
func isSelected(mode: RoomNotificationModeProxy) -> Bool {
|
||||
if case .loaded(let settings) = notificationSettingsState, settings.mode == mode, pendingCustomMode == nil {
|
||||
|
||||
Reference in New Issue
Block a user