Hide safety numbers until you've exchanged keys

// FREEBIE
pull/1/head
Michael Kirk 9 years ago
parent 225c5ecfb7
commit 23c80748e6

@ -140,7 +140,7 @@ CHECKOUT OPTIONS:
:commit: 03cde781234ade464dd26914d87e6e95afde1119
:git: https://github.com/WhisperSystems/JSQMessagesViewController.git
SignalServiceKit:
:commit: 2e06bb148f07e36ab1fcb5de47910e28c0c31fef
:commit: 1ebb82f98715b672474c5c0f27d8b18ec740fced
:git: https://github.com/WhisperSystems/SignalServiceKit.git
SocketRocket:
:commit: 41b57bb2fc292a814f758441a05243eb38457027

@ -241,8 +241,7 @@ static NSString *const OWSConversationSettingsTableViewControllerSegueShowGroupM
}
if (section == OWSConversationSettingsTableViewControllerSectionContact) {
if (self.isGroupThread) {
// No fingerprint for group thread.
if (!self.thread.hasSafetyNumbers) {
baseCount -= 1;
}
@ -256,8 +255,10 @@ static NSString *const OWSConversationSettingsTableViewControllerSegueShowGroupM
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath
{
if (self.isGroupThread && indexPath.section == OWSConversationSettingsTableViewControllerSectionContact) {
// Since fingerprint cell is hidden for group threads we offset our index path
if (indexPath.section == OWSConversationSettingsTableViewControllerSectionContact
&& !self.thread.hasSafetyNumbers) {
// Since fingerprint cell is hidden for some threads we offset our index path
NSIndexPath *offsetIndexPath = [NSIndexPath indexPathForRow:indexPath.row + 1 inSection:indexPath.section];
return [super tableView:tableView cellForRowAtIndexPath:offsetIndexPath];
}
@ -411,7 +412,7 @@ static NSString *const OWSConversationSettingsTableViewControllerSegueShowGroupM
- (NSIndexPath *)indexPathForDurationSlider
{
if (self.isGroupThread) {
if (!self.thread.hasSafetyNumbers) {
return [NSIndexPath
indexPathForRow:OWSConversationSettingsTableViewControllerCellIndexSetDisappearingMessagesDuration - 1
inSection:OWSConversationSettingsTableViewControllerSectionContact];

Loading…
Cancel
Save