Elaborate debug UI for messages.

This commit is contained in:
Matthew Chen 2018-03-26 10:54:43 -04:00
parent 041b28dd79
commit 3a5ba15d21
4 changed files with 0 additions and 56 deletions

View file

@ -91,10 +91,6 @@
self.title = NSLocalizedString(@"SETTINGS_NAV_BAR_TITLE", @"Title for settings activity");
[self updateTableContents];
dispatch_async(dispatch_get_main_queue(), ^{
[self showDebugUI];
});
}
- (void)viewWillAppear:(BOOL)animated

View file

@ -490,10 +490,6 @@ typedef enum : NSUInteger {
[self createBackButton];
[self addNotificationListeners];
[self loadDraftInCompose];
dispatch_async(dispatch_get_main_queue(), ^{
[DebugUITableViewController presentDebugUIForThread:self.thread fromViewController:self];
});
}
- (void)loadView

View file

@ -357,44 +357,6 @@ NS_ASSUME_NONNULL_BEGIN
});
}
//+ (void)ensureRandomFileWithURL:(NSString *)url
// filename:(NSString *)filename
// success:(nullable void (^)(NSString *filePath))success
// failure:(nullable void (^)(void))failure
//{
// NSFileManager *fileManager = [NSFileManager defaultManager];
// NSURL *documentDirectoryURL =
// [[fileManager URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
// NSString *randomFilesDirectoryPath =
// [[documentDirectoryURL path] stringByAppendingPathComponent:@"cached_random_files"];
// [OWSFileSystem ensureDirectoryExists:randomFilesDirectoryPath];
// NSString *filePath = [randomFilesDirectoryPath stringByAppendingPathComponent:filename];
// if ([fileManager fileExistsAtPath:filePath]) {
// success(filePath);
// } else {
// NSURLSessionConfiguration *configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
// AFHTTPSessionManager *sessionManager =
// [[AFHTTPSessionManager alloc] initWithSessionConfiguration:configuration];
// sessionManager.responseSerializer = [AFHTTPResponseSerializer serializer];
// OWSAssert(sessionManager.responseSerializer);
// [sessionManager GET:url
// parameters:nil
// progress:nil
// success:^(NSURLSessionDataTask *task, NSData *_Nullable responseObject) {
// if ([responseObject writeToFile:filePath atomically:YES]) {
// success(filePath);
// } else {
// OWSFail(@"Error write url response [%@]: %@", url, filePath);
// failure();
// }
// }
// failure:^(NSURLSessionDataTask *_Nullable task, NSError *requestError) {
// OWSFail(@"Error downloading url[%@]: %@", url, requestError);
// failure();
// }];
// }
//}
+ (void)sendAttachment:(NSString *)filePath
thread:(TSThread *)thread
success:(nullable void (^)(void))success

View file

@ -284,16 +284,6 @@ typedef NS_ENUM(NSInteger, CellState) { kArchiveState, kInboxState };
}
[self updateBarButtonItems];
dispatch_async(dispatch_get_main_queue(), ^{
TSThread *_Nullable thread = [self threadForIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];
if (!thread) {
return;
}
[self presentThread:thread keyboardOnViewAppearing:NO callOnViewAppearing:NO];
// [self settingsButtonPressed:nil];
});
}
- (void)viewDidAppear:(BOOL)animated