mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Fix rebase issues
This commit is contained in:
parent
832a8bab78
commit
241a1fcb7f
2 changed files with 5 additions and 3 deletions
|
@ -99,8 +99,8 @@ final class NotificationSettingsViewModelTests: XCTestCase {
|
|||
XCTAssertEqual(viewModel.viewState.selectionState[.oneToOneRoom], true)
|
||||
|
||||
// the oneToOneRoom rule should be flagged as "out of sync"
|
||||
XCTAssertTrue(self.viewModel.isRuleOutOfSync(.oneToOneRoom))
|
||||
XCTAssertFalse(self.viewModel.isRuleOutOfSync(.allOtherMessages))
|
||||
XCTAssertTrue(viewModel.isRuleOutOfSync(.oneToOneRoom))
|
||||
XCTAssertFalse(viewModel.isRuleOutOfSync(.allOtherMessages))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,9 @@ struct NotificationSettings<BottomSection: View>: View {
|
|||
VStack(alignment: .leading, spacing: 4) {
|
||||
let checked = viewModel.viewState.selectionState[ruleId] ?? false
|
||||
FormPickerItem(title: ruleId.title, selected: checked) {
|
||||
viewModel.update(ruleID: ruleId, isChecked: !checked)
|
||||
Task {
|
||||
await viewModel.update(ruleID: ruleId, isChecked: !checked)
|
||||
}
|
||||
}
|
||||
|
||||
if viewModel.isRuleOutOfSync(ruleId) {
|
||||
|
|
Loading…
Reference in a new issue