MESSENGER-3157 third notification settings option

This commit is contained in:
Arnfried Griesert
2023-03-07 13:28:09 +00:00
committed by Frank Rotermund
parent a50402d361
commit 89f8644abc
10 changed files with 49 additions and 11 deletions
@@ -44,8 +44,11 @@ class RoomNotificationSettingsFooter: UITableViewHeaderFooterView {
// let linkRange = (footer0.string as NSString).range(of: linkStr)
// footer0.addAttribute(NSAttributedString.Key.link, value: Constants.linkToAccountSettings, range: linkRange)
label.text = footerState.showEncryptedNotice ? VectorL10n.roomNotifsSettingsEncryptedRoomNotice : nil
if BWIBuildSettings.shared.notificationSettingsLikeAndroidAndWeb {
label.text = ""
} else {
label.text = footerState.showEncryptedNotice ? VectorL10n.roomNotifsSettingsEncryptedRoomNotice : nil
}
}
}
@@ -161,7 +161,7 @@ final class RoomNotificationSettingsViewController: UIViewController {
})
})
let footerState = RoomNotificationSettingsFooter.State(showEncryptedNotice: viewState.roomEncrypted, showAccountLink: false)
let section0 = Section(title: VectorL10n.roomNotifsSettingsNotifyMeFor, rows: rows, footerState: footerState)
let section0 = Section(title: BWIL10n.roomNotifsSettingsNotifyMeFor, rows: rows, footerState: footerState)
sections = [
section0
]