fixup debug contacts

This commit is contained in:
Michael Kirk 2018-10-03 16:26:50 -06:00
parent 9b6d2be370
commit 92e8b117f5
2 changed files with 4 additions and 7 deletions

View File

@ -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"
NS_ASSUME_NONNULL_BEGIN
@class OWSTableSection;
@class CNContact;
@class OWSTableSection;
@interface DebugUIContacts : DebugUIPage
+ (void)createRandomContacts:(NSUInteger)count
contactHandler:
(nullable void (^)(CNContact *_Nonnull contact, NSUInteger idx, BOOL *_Nonnull stop))contactHandler;
@end
NS_ASSUME_NONNULL_END

View File

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