clearer code style

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

@ -49,34 +49,29 @@ 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:messagesSection];
[weakSelf pushPageWithSection:[DebugUIMessages }],
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
items:@[ sectionWithTitle:sessionSection.headerTitle
[OWSTableItem items:@[
disclosureItemWithText:[DebugUISessionState [OWSTableItem disclosureItemWithText:sessionSection.headerTitle
sectionForContactThread:contactThread] actionBlock:^{
.headerTitle [weakSelf
actionBlock:^{ pushPageWithSection:sessionSection];
[weakSelf pushPageWithSection: }],
[DebugUISessionState ]]];
sectionForContactThread:contactThread]];
}],
]]];
// After enqueing the notification you may want to background the app or lock the screen before it triggers, so // After enqueing the notification you may want to background the app or lock the screen before it triggers, so
// we give a little delay. // we give a little delay.

Loading…
Cancel
Save