mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
Fix rebase issues
This commit is contained in:
+2
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user