From c2de6f9f88dfed950beac08615b574adbaf48661 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Tue, 26 Nov 2019 10:48:50 +1100 Subject: [PATCH] Don't show linked device setting on slave devices --- .../AppSettings/AppSettingsViewController.m | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Signal/src/ViewControllers/AppSettings/AppSettingsViewController.m b/Signal/src/ViewControllers/AppSettings/AppSettingsViewController.m index 6541c31ba..11f0a2834 100644 --- a/Signal/src/ViewControllers/AppSettings/AppSettingsViewController.m +++ b/Signal/src/ViewControllers/AppSettings/AppSettingsViewController.m @@ -200,11 +200,13 @@ actionBlock:^{ [weakSelf showNotifications]; }]]; - [section addItem:[OWSTableItem disclosureItemWithText:NSLocalizedString(@"Linked Devices", @"") - accessibilityIdentifier:ACCESSIBILITY_IDENTIFIER_WITH_NAME(self, @"linked_devices") - actionBlock:^{ - [weakSelf showLinkedDevices]; - }]]; + if (isMasterDevice) { + [section addItem:[OWSTableItem disclosureItemWithText:NSLocalizedString(@"Linked Devices", @"") + accessibilityIdentifier:ACCESSIBILITY_IDENTIFIER_WITH_NAME(self, @"linked_devices") + actionBlock:^{ + [weakSelf showLinkedDevices]; + }]]; + } // Loki: Original code // ======== // [section addItem:[OWSTableItem disclosureItemWithText:NSLocalizedString(@"SETTINGS_ADVANCED_TITLE", @"")