mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 05:06:58 +02:00
SettingsViewController: Fix issue (introduced by previous commitment).
This commit is contained in:
@@ -237,6 +237,7 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl
|
||||
inAppNotificationsSwitch = nil;
|
||||
|
||||
allEventsSwitch = nil;
|
||||
redactionsSwitch = nil;
|
||||
unsupportedEventsSwitch = nil;
|
||||
sortMembersSwitch = nil;
|
||||
displayLeftMembersSwitch = nil;
|
||||
@@ -395,6 +396,8 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl
|
||||
notificationsCell = [[MXKTableViewCellWithLabelAndSwitch alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:kSettingsSwitchCellIdentifier];
|
||||
}
|
||||
|
||||
[notificationsCell.mxkSwitch addTarget:self action:@selector(onButtonPressed:) forControlEvents:UIControlEventValueChanged];
|
||||
|
||||
if (indexPath.row == enableInAppNotifRowIndex) {
|
||||
notificationsCell.mxkLabel.text = @"Enable In-App notifications";
|
||||
notificationsCell.mxkSwitch.on = [_settings enableInAppNotifications];
|
||||
@@ -405,6 +408,7 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl
|
||||
notificationsCell.mxkSwitch.enabled = YES;
|
||||
apnsNotificationsSwitch = notificationsCell.mxkSwitch;
|
||||
}
|
||||
|
||||
cell = notificationsCell;
|
||||
}
|
||||
} else if (indexPath.section == SETTINGS_SECTION_CONTACTS_INDEX) {
|
||||
@@ -414,6 +418,8 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl
|
||||
contactsCell = [[MXKTableViewCellWithLabelAndSwitch alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:kSettingsSwitchCellIdentifier];
|
||||
}
|
||||
|
||||
[contactsCell.mxkSwitch addTarget:self action:@selector(onButtonPressed:) forControlEvents:UIControlEventValueChanged];
|
||||
|
||||
contactsCell.mxkLabel.text = @"Sync local contacts";
|
||||
contactsCell.mxkSwitch.on = [_settings syncLocalContacts];
|
||||
contactsSyncSwitch = contactsCell.mxkSwitch;
|
||||
@@ -497,6 +503,8 @@ NSString* const kCommandsDescriptionText = @"The following commands are availabl
|
||||
roomsSettingCell = [[MXKTableViewCellWithLabelAndSwitch alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:kSettingsSwitchCellIdentifier];
|
||||
}
|
||||
|
||||
[roomsSettingCell.mxkSwitch addTarget:self action:@selector(onButtonPressed:) forControlEvents:UIControlEventValueChanged];
|
||||
|
||||
if (indexPath.row == SETTINGS_SECTION_ROOMS_DISPLAY_ALL_EVENTS_INDEX) {
|
||||
roomsSettingCell.mxkLabel.text = @"Display all events";
|
||||
roomsSettingCell.mxkSwitch.on = [_settings showAllEventsInRoomHistory];
|
||||
|
||||
Reference in New Issue
Block a user