|
|
|
@ -70,7 +70,7 @@ typedef NS_ENUM(NSInteger, PrivacySettingsTableViewControllerSectionIndex) {
|
|
|
|
|
[self.enableCallKitSwitch setOn:[[Environment getCurrent].preferences isCallKitEnabled]];
|
|
|
|
|
[self.enableCallKitSwitch addTarget:self
|
|
|
|
|
action:@selector(didToggleEnableCallKitSwitch:)
|
|
|
|
|
forControlEvents:UIControlEventTouchUpInside];
|
|
|
|
|
forControlEvents:UIControlEventValueChanged];
|
|
|
|
|
self.enableCallKitCell.accessoryView = self.enableCallKitSwitch;
|
|
|
|
|
|
|
|
|
|
// CallKit privacy
|
|
|
|
@ -80,7 +80,7 @@ typedef NS_ENUM(NSInteger, PrivacySettingsTableViewControllerSectionIndex) {
|
|
|
|
|
[self.enableCallKitPrivacySwitch setOn:![[Environment getCurrent].preferences isCallKitPrivacyEnabled]];
|
|
|
|
|
[self.enableCallKitPrivacySwitch addTarget:self
|
|
|
|
|
action:@selector(didToggleEnableCallKitPrivacySwitch:)
|
|
|
|
|
forControlEvents:UIControlEventTouchUpInside];
|
|
|
|
|
forControlEvents:UIControlEventValueChanged];
|
|
|
|
|
self.enableCallKitPrivacyCell.accessoryView = self.enableCallKitPrivacySwitch;
|
|
|
|
|
|
|
|
|
|
// Enable Screen Security Cell
|
|
|
|
@ -92,7 +92,7 @@ typedef NS_ENUM(NSInteger, PrivacySettingsTableViewControllerSectionIndex) {
|
|
|
|
|
[self.enableScreenSecuritySwitch setOn:[Environment.preferences screenSecurityIsEnabled]];
|
|
|
|
|
[self.enableScreenSecuritySwitch addTarget:self
|
|
|
|
|
action:@selector(didToggleScreenSecuritySwitch:)
|
|
|
|
|
forControlEvents:UIControlEventTouchUpInside];
|
|
|
|
|
forControlEvents:UIControlEventValueChanged];
|
|
|
|
|
|
|
|
|
|
// Allow calls to connect directly vs. using TURN exclusively
|
|
|
|
|
self.callsHideIPAddressCell = [UITableViewCell new];
|
|
|
|
@ -103,7 +103,7 @@ typedef NS_ENUM(NSInteger, PrivacySettingsTableViewControllerSectionIndex) {
|
|
|
|
|
[self.callsHideIPAddressSwitch setOn:[Environment.preferences doCallsHideIPAddress]];
|
|
|
|
|
[self.callsHideIPAddressSwitch addTarget:self
|
|
|
|
|
action:@selector(didToggleCallsHideIPAddressSwitch:)
|
|
|
|
|
forControlEvents:UIControlEventTouchUpInside];
|
|
|
|
|
forControlEvents:UIControlEventValueChanged];
|
|
|
|
|
|
|
|
|
|
// Clear History Log Cell
|
|
|
|
|
self.clearHistoryLogCell = [[UITableViewCell alloc] init];
|
|
|
|
@ -119,7 +119,7 @@ typedef NS_ENUM(NSInteger, PrivacySettingsTableViewControllerSectionIndex) {
|
|
|
|
|
[self.blockOnIdentityChangeSwitch setOn:[Environment.preferences shouldBlockOnIdentityChange]];
|
|
|
|
|
[self.blockOnIdentityChangeSwitch addTarget:self
|
|
|
|
|
action:@selector(didToggleBlockOnIdentityChangeSwitch:)
|
|
|
|
|
forControlEvents:UIControlEventTouchUpInside];
|
|
|
|
|
forControlEvents:UIControlEventValueChanged];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#pragma mark - Table view data source
|
|
|
|
|