From 1acb2d74934aa4f50968e33c88d2aeddefed6bfa Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 21 Apr 2017 17:03:18 -0400 Subject: [PATCH] Respond to CR. // FREEBIE --- .../OWSConversationSettingsTableViewController.m | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Signal/src/ViewControllers/OWSConversationSettingsTableViewController.m b/Signal/src/ViewControllers/OWSConversationSettingsTableViewController.m index 97d15dcec..1df94a5eb 100644 --- a/Signal/src/ViewControllers/OWSConversationSettingsTableViewController.m +++ b/Signal/src/ViewControllers/OWSConversationSettingsTableViewController.m @@ -13,6 +13,7 @@ #import "OWSContactsManager.h" #import "PhoneNumber.h" #import "ShowGroupMembersViewController.h" +#import "Signal-Swift.h" #import "UIFont+OWS.h" #import "UIUtil.h" #import "UIView+OWS.h" @@ -191,9 +192,8 @@ NS_ASSUME_NONNULL_BEGIN if (!strongSelf) { return; } - FingerprintViewController *fingerprintViewController = - [[UIStoryboard storyboardWithName:@"Main" bundle:NULL] - instantiateViewControllerWithIdentifier:@"FingerprintViewController"]; + FingerprintViewController *fingerprintViewController = [[UIStoryboard main] + instantiateViewControllerWithIdentifier:@"FingerprintViewController"]; OWSFingerprintBuilder *fingerprintBuilder = [[OWSFingerprintBuilder alloc] initWithStorageManager:strongSelf.storageManager @@ -332,8 +332,7 @@ NS_ASSUME_NONNULL_BEGIN return; } NewGroupViewController *newGroupViewController = - [[UIStoryboard storyboardWithName:@"Main" bundle:NULL] - instantiateViewControllerWithIdentifier:@"NewGroupViewController"]; + [[UIStoryboard main] instantiateViewControllerWithIdentifier:@"NewGroupViewController"]; [newGroupViewController configWithThread:(TSGroupThread *)strongSelf.thread]; [strongSelf.navigationController pushViewController:newGroupViewController animated:YES]; }], @@ -366,8 +365,7 @@ NS_ASSUME_NONNULL_BEGIN return; } ShowGroupMembersViewController *showGroupMembersViewController = - [[UIStoryboard storyboardWithName:@"Main" bundle:NULL] - instantiateViewControllerWithIdentifier:@"ShowGroupMembersViewController"]; + [[UIStoryboard main] instantiateViewControllerWithIdentifier:@"ShowGroupMembersViewController"]; [showGroupMembersViewController configWithThread:(TSGroupThread *)strongSelf.thread]; [strongSelf.navigationController pushViewController:showGroupMembersViewController animated:YES]; }], @@ -561,8 +559,8 @@ NS_ASSUME_NONNULL_BEGIN { if (sender.state == UIGestureRecognizerStateBegan || sender.state == UIGestureRecognizerStateRecognized) { if (self.isGroupThread) { - NewGroupViewController *newGroupViewController = [[UIStoryboard storyboardWithName:@"Main" bundle:NULL] - instantiateViewControllerWithIdentifier:@"NewGroupViewController"]; + NewGroupViewController *newGroupViewController = + [[UIStoryboard main] instantiateViewControllerWithIdentifier:@"NewGroupViewController"]; [newGroupViewController configWithThread:(TSGroupThread *)self.thread]; CGPoint location = [sender locationInView:self.avatarView];