// // Copyright (c) 2021 Open Whisper Systems. All rights reserved. // #import "DebugUIScreenshots.h" #import "DebugContactsUtils.h" #import "DebugUIContacts.h" #import "Signal-Swift.h" #import #import #import #import #import #import #import #import #import #import #import #import #import #import #import #import #import #ifdef DEBUG NS_ASSUME_NONNULL_BEGIN @implementation DebugUIScreenshots #pragma mark - Factory Methods - (NSString *)name { return @"Screenshots"; } - (nullable OWSTableSection *)sectionForThread:(nullable TSThread *)thread { NSMutableArray *items = [NSMutableArray new]; [items addObjectsFromArray:@[ [OWSTableItem itemWithTitle:@"Delete all threads" actionBlock:^{ [DebugUIScreenshots deleteAllThreads]; }], [OWSTableItem itemWithTitle:@"Make Threads for Screenshots" actionBlock:^{ [DebugUIScreenshots makeThreadsForScreenshots]; }], ]]; return [OWSTableSection sectionWithTitle:self.name items:items]; } @end NS_ASSUME_NONNULL_END #endif