mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Clean up debug scaffolding.
// FREEBIE
This commit is contained in:
parent
f5cd39ea35
commit
da7dd1b128
10 changed files with 9 additions and 98 deletions
|
@ -105,6 +105,11 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)shouldHideContacts
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
- (BOOL)shouldValidatePhoneNumbers
|
||||
{
|
||||
return NO;
|
||||
|
|
|
@ -74,11 +74,6 @@ typedef NS_ENUM(NSInteger, BlockListViewControllerSection) {
|
|||
{
|
||||
[super viewDidLoad];
|
||||
[self.navigationController.navigationBar setTranslucent:NO];
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
AddToBlockListViewController *vc = [[AddToBlockListViewController alloc] init];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
});
|
||||
}
|
||||
|
||||
#pragma mark - Table view data source
|
||||
|
|
|
@ -157,13 +157,6 @@ NSString *const MessageComposeTableViewControllerCellContact = @"ContactTableVie
|
|||
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
|
||||
[self createLoadingAndBackgroundViews];
|
||||
self.title = NSLocalizedString(@"MESSAGE_COMPOSEVIEW_TITLE", @"");
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
NewGroupViewController *newGroupViewController = [NewGroupViewController new];
|
||||
// [[UIStoryboard main] instantiateViewControllerWithIdentifier:@"NewGroupViewController"];
|
||||
// [newGroupViewController configWithThread:(TSGroupThread *)self.thread];
|
||||
[self.navigationController pushViewController:newGroupViewController animated:YES];
|
||||
});
|
||||
}
|
||||
|
||||
- (void)viewWillAppear:(BOOL)animated
|
||||
|
|
|
@ -409,12 +409,6 @@ typedef enum : NSUInteger {
|
|||
contactsManager:self.contactsManager
|
||||
blockingManager:self.blockingManager];
|
||||
}
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
// [self performSegueWithIdentifier:@"composeNew" sender:self];
|
||||
// TSThread *thread = [self threadForIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]];
|
||||
// [self presentThread:thread keyboardOnViewAppearing:NO callOnViewAppearing:NO];
|
||||
[self showConversationSettings];
|
||||
});
|
||||
}
|
||||
|
||||
- (void)viewDidLayoutSubviews
|
||||
|
@ -737,13 +731,6 @@ typedef enum : NSUInteger {
|
|||
_callOnOpen = NO;
|
||||
}
|
||||
[self updateNavigationBarSubtitleLabel];
|
||||
|
||||
// dispatch_async(dispatch_get_main_queue(), ^{
|
||||
// // [self performSegueWithIdentifier:@"composeNew" sender:self];
|
||||
// // TSThread *thread = [self threadForIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]];
|
||||
// // [self presentThread:thread keyboardOnViewAppearing:NO callOnViewAppearing:NO];
|
||||
// [self showConversationSettings];
|
||||
// });
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated {
|
||||
|
|
|
@ -499,9 +499,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
OWSAssert(image);
|
||||
|
||||
self.avatarView.image = image;
|
||||
// TODO.
|
||||
// self.groupImageButton.imageView.layer.borderColor = [[UIColor lightGrayColor] CGColor];
|
||||
// self.groupImageButton.imageView.layer.borderWidth = 0.5f;
|
||||
self.avatarView.layer.borderColor = [[UIColor lightGrayColor] CGColor];
|
||||
self.avatarView.layer.borderWidth = 0.5f;
|
||||
self.avatarView.contentMode = UIViewContentModeScaleAspectFill;
|
||||
}
|
||||
|
||||
|
@ -525,16 +524,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
NSLocalizedString(@"NEW_GROUP_VIEW_UNSAVED_CHANGES_MESSAGE",
|
||||
@"The alert message if user tries to exit the new group view without saving changes.")
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
[controller addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"ALERT_SAVE",
|
||||
@"The label for the 'save' button in action sheets.")
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction *action) {
|
||||
OWSAssert(self.delegate);
|
||||
|
||||
[self createGroup];
|
||||
|
||||
[self.delegate popAllConversationSettingsViews];
|
||||
}]];
|
||||
[controller
|
||||
addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@"ALERT_DISCARD_BUTTON",
|
||||
@"The label for the 'discard' button in alerts and action sheets.")
|
||||
|
|
|
@ -140,29 +140,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
}
|
||||
|
||||
[self updateTableContents];
|
||||
|
||||
if ([self.thread isKindOfClass:[TSGroupThread class]]) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
OWSAssert(self.delegate);
|
||||
UpdateGroupViewController *updateGroupViewController = [UpdateGroupViewController new];
|
||||
updateGroupViewController.delegate = self.delegate;
|
||||
updateGroupViewController.thread = (TSGroupThread *)self.thread;
|
||||
[self.navigationController pushViewController:updateGroupViewController animated:YES];
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
- (void)viewDidAppear:(BOOL)animated
|
||||
{
|
||||
[super viewDidAppear:animated];
|
||||
|
||||
// dispatch_async(dispatch_get_main_queue(), ^{
|
||||
// OWSAssert(self.delegate);
|
||||
// UpdateGroupViewController *updateGroupViewController = [UpdateGroupViewController new];
|
||||
// updateGroupViewController.delegate = self.delegate;
|
||||
// [updateGroupViewController configWithThread:(TSGroupThread *)self.thread];
|
||||
// [self.navigationController pushViewController:updateGroupViewController animated:YES];
|
||||
// });
|
||||
}
|
||||
|
||||
- (void)updateTableContents
|
||||
|
|
|
@ -52,11 +52,6 @@ typedef NS_ENUM(NSInteger, PrivacySettingsTableViewControllerSectionIndex) {
|
|||
[self.navigationController.navigationBar setTranslucent:NO];
|
||||
|
||||
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
BlockListViewController *vc = [[BlockListViewController alloc] init];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
});
|
||||
}
|
||||
|
||||
- (instancetype)init {
|
||||
|
|
|
@ -105,11 +105,6 @@ typedef enum {
|
|||
|
||||
[self.destroyAccountButton setTitle:NSLocalizedString(@"SETTINGS_DELETE_ACCOUNT_BUTTON", @"")
|
||||
forState:UIControlStateNormal];
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
PrivacySettingsTableViewController *vc = [[PrivacySettingsTableViewController alloc] init];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
});
|
||||
}
|
||||
|
||||
- (void)viewWillAppear:(BOOL)animated
|
||||
|
|
|
@ -163,15 +163,6 @@ NSString *const SignalsViewControllerSegueShowIncomingCall = @"ShowIncomingCallS
|
|||
object:nil];
|
||||
|
||||
[self updateBarButtonItems];
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
// [self settingsButtonPressed:nil];
|
||||
|
||||
[self performSegueWithIdentifier:@"composeNew" sender:self];
|
||||
|
||||
// TSThread *thread = [self threadForIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]];
|
||||
// [self presentThread:thread keyboardOnViewAppearing:NO callOnViewAppearing:NO];
|
||||
});
|
||||
}
|
||||
|
||||
- (void)updateBarButtonItems {
|
||||
|
@ -297,12 +288,6 @@ NSString *const SignalsViewControllerSegueShowIncomingCall = @"ShowIncomingCallS
|
|||
} else {
|
||||
[self displayAnyUnseenUpgradeExperience];
|
||||
}
|
||||
|
||||
// dispatch_async(dispatch_get_main_queue(), ^{
|
||||
// // [self performSegueWithIdentifier:@"composeNew" sender:self];
|
||||
// TSThread *thread = [self threadForIndexPath:[NSIndexPath indexPathForItem:0 inSection:0]];
|
||||
// [self presentThread:thread keyboardOnViewAppearing:NO callOnViewAppearing:NO];
|
||||
// });
|
||||
}
|
||||
|
||||
#pragma mark - startup
|
||||
|
|
|
@ -121,12 +121,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
[_tableViewController.view autoPinEdge:ALEdgeTop toEdge:ALEdgeBottom ofView:firstSection];
|
||||
[_tableViewController.view autoPinEdgeToSuperviewEdge:ALEdgeBottom];
|
||||
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
AddToGroupViewController *viewController = [AddToGroupViewController new];
|
||||
viewController.addToGroupDelegate = self;
|
||||
[self.navigationController pushViewController:viewController animated:YES];
|
||||
});
|
||||
|
||||
[self updateTableContents];
|
||||
}
|
||||
|
||||
|
@ -407,12 +401,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
OWSAssert(image);
|
||||
|
||||
self.avatarView.image = image;
|
||||
// [self.avatarView setImage:image forState:UIControlStateNormal];
|
||||
// self.groupImageButton.imageView.layer.cornerRadius = CGRectGetWidth([self.groupImageButton.imageView frame])
|
||||
// / 2.0f; self.groupImageButton.imageView.layer.masksToBounds = YES;
|
||||
// TODO.
|
||||
// self.groupImageButton.imageView.layer.borderColor = [[UIColor lightGrayColor] CGColor];
|
||||
// self.groupImageButton.imageView.layer.borderWidth = 0.5f;
|
||||
self.avatarView.layer.borderColor = [[UIColor lightGrayColor] CGColor];
|
||||
self.avatarView.layer.borderWidth = 0.5f;
|
||||
self.avatarView.contentMode = UIViewContentModeScaleAspectFill;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue