fixup debug contacts

pull/1/head
Michael Kirk 7 years ago
parent 9b6d2be370
commit 92e8b117f5

@ -1,20 +1,16 @@
// //
// Copyright (c) 2017 Open Whisper Systems. All rights reserved. // Copyright (c) 2018 Open Whisper Systems. All rights reserved.
// //
#import "DebugUIPage.h" #import "DebugUIPage.h"
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
@class OWSTableSection;
@class CNContact; @class CNContact;
@class OWSTableSection;
@interface DebugUIContacts : DebugUIPage @interface DebugUIContacts : DebugUIPage
+ (void)createRandomContacts:(NSUInteger)count
contactHandler:
(nullable void (^)(CNContact *_Nonnull contact, NSUInteger idx, BOOL *_Nonnull stop))contactHandler;
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END

@ -3,6 +3,7 @@
// //
#import "DebugUIMessages.h" #import "DebugUIMessages.h"
#import "DebugContactsUtils.h"
#import "DebugUIContacts.h" #import "DebugUIContacts.h"
#import "DebugUIMessagesAction.h" #import "DebugUIMessagesAction.h"
#import "DebugUIMessagesAssetLoader.h" #import "DebugUIMessagesAssetLoader.h"
@ -3640,7 +3641,7 @@ typedef OWSContact * (^OWSContactBlock)(YapDatabaseReadWriteTransaction *transac
+ (void)createFakeThreads:(NSUInteger)threadCount withFakeMessages:(NSUInteger)messageCount + (void)createFakeThreads:(NSUInteger)threadCount withFakeMessages:(NSUInteger)messageCount
{ {
[DebugUIContacts [DebugContactsUtils
createRandomContacts:threadCount createRandomContacts:threadCount
contactHandler:^(CNContact *_Nonnull contact, NSUInteger idx, BOOL *_Nonnull stop) { contactHandler:^(CNContact *_Nonnull contact, NSUInteger idx, BOOL *_Nonnull stop) {
NSString *phoneNumberText = contact.phoneNumbers.firstObject.value.stringValue; NSString *phoneNumberText = contact.phoneNumbers.firstObject.value.stringValue;

Loading…
Cancel
Save