Move complete room notification settings module to RiotSwiftUI and fix naming/directory structure.

This commit is contained in:
David Langley
2021-09-02 14:09:29 +01:00
parent bbf7d28928
commit 14169c6594
13 changed files with 19 additions and 19 deletions

View File

@@ -155,7 +155,7 @@ final class NotificationSettingsViewModel: NotificationSettingsViewModelType, Ob
}
// MARK: - Private
private func rulesUpdated(newRules: [NotificationPushRule]) {
private func rulesUpdated(newRules: [NotificationPushRuleType]) {
for rule in newRules {
guard let ruleId = NotificationPushRuleId(rawValue: rule.ruleId),
ruleIds.contains(ruleId) else { continue }
@@ -174,7 +174,7 @@ final class NotificationSettingsViewModel: NotificationSettingsViewModelType, Ob
Matcing is done by comparing the rule against the static definitions for that rule.
The same logic is used on android.
*/
private func isChecked(rule: NotificationPushRule) -> Bool {
private func isChecked(rule: NotificationPushRuleType) -> Bool {
guard let ruleId = NotificationPushRuleId(rawValue: rule.ruleId) else { return false }
let firstIndex = NotificationIndex.allCases.first { nextIndex in