Fix breakage in production builds.
This commit is contained in:
parent
beea74b761
commit
7df8976559
|
@ -51,6 +51,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
return @"Messages";
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
- (NSArray<OWSTableItem *> *)itemsForActions:(NSArray<DebugUIMessagesAction *> *)actions
|
||||
{
|
||||
NSMutableArray<OWSTableItem *> *items = [NSMutableArray new];
|
||||
|
@ -75,12 +77,16 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
return items;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
- (nullable OWSTableSection *)sectionForThread:(nullable TSThread *)thread
|
||||
{
|
||||
OWSAssert(thread);
|
||||
|
||||
NSMutableArray<OWSTableItem *> *items = [NSMutableArray new];
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
[items addObject:[OWSTableItem itemWithTitle:@"Delete all messages in thread"
|
||||
actionBlock:^{
|
||||
[DebugUIMessages deleteAllMessagesInThread:thread];
|
||||
|
@ -297,9 +303,14 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
[DebugUIMessages sendMessages:1 toAllMembersOfGroup:groupThread];
|
||||
}]];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
return [OWSTableSection sectionWithTitle:self.name items:items];
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
+ (void)sendMessages:(NSUInteger)count toAllMembersOfGroup:(TSGroupThread *)groupThread
|
||||
{
|
||||
for (NSString *recipientId in groupThread.groupModel.groupMemberIds) {
|
||||
|
@ -4655,6 +4666,8 @@ typedef OWSContact * (^OWSContactBlock)(YapDatabaseReadWriteTransaction *transac
|
|||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
|
@ -33,6 +33,9 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
OWSAssert(thread);
|
||||
|
||||
NSMutableArray<OWSTableItem *> *items = [NSMutableArray new];
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
[items addObject:[OWSTableItem itemWithTitle:@"Send empty message"
|
||||
actionBlock:^{
|
||||
[DebugUIStress sendStressMessage:thread block:^(SignalRecipient *recipient) {
|
||||
|
@ -440,9 +443,14 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
[DebugUIStress hallucinateTwinGroup:groupThread];
|
||||
}]];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
return [OWSTableSection sectionWithTitle:self.name items:items];
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
+ (void)ensureGroupOfDataBuilder:(SSKProtoDataMessageBuilder *)dataBuilder thread:(TSThread *)thread
|
||||
{
|
||||
OWSAssert(dataBuilder);
|
||||
|
@ -515,6 +523,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
[SignalApp.sharedApp presentConversationForThread:thread animated:YES];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
|
Loading…
Reference in New Issue