clearer code style

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent d77addc01e
commit bae91d97d6

@ -49,32 +49,27 @@ NS_ASSUME_NONNULL_BEGIN
OWSTableContents *contents = [OWSTableContents new]; OWSTableContents *contents = [OWSTableContents new];
contents.title = @"Debug: Conversation"; contents.title = @"Debug: Conversation";
[contents OWSTableSection *messagesSection = [DebugUIMessages sectionForThread:thread];
addSection:[OWSTableSection [contents addSection:[OWSTableSection
sectionWithTitle:[DebugUIMessages sectionForThread:thread].headerTitle sectionWithTitle:messagesSection.headerTitle
items:@[ items:@[
[OWSTableItem [OWSTableItem disclosureItemWithText:messagesSection.headerTitle
disclosureItemWithText:[DebugUIMessages sectionForThread:thread].headerTitle
actionBlock:^{ actionBlock:^{
[weakSelf pushPageWithSection:[DebugUIMessages [weakSelf pushPageWithSection:messagesSection];
sectionForThread:thread]];
}], }],
]]]; ]]];
if ([thread isKindOfClass:[TSContactThread class]]) { if ([thread isKindOfClass:[TSContactThread class]]) {
TSContactThread *contactThread = (TSContactThread *)thread; TSContactThread *contactThread = (TSContactThread *)thread;
[contents
addSection:[OWSTableSection OWSTableSection *sessionSection = [DebugUISessionState sectionForContactThread:contactThread];
sectionWithTitle:[DebugUISessionState sectionForContactThread:contactThread].headerTitle [contents addSection:[OWSTableSection
sectionWithTitle:sessionSection.headerTitle
items:@[ items:@[
[OWSTableItem [OWSTableItem disclosureItemWithText:sessionSection.headerTitle
disclosureItemWithText:[DebugUISessionState
sectionForContactThread:contactThread]
.headerTitle
actionBlock:^{ actionBlock:^{
[weakSelf pushPageWithSection: [weakSelf
[DebugUISessionState pushPageWithSection:sessionSection];
sectionForContactThread:contactThread]];
}], }],
]]]; ]]];

Loading…
Cancel
Save