session-ios/SignalServiceKit/tests/TestSupport/Fakes/OWSFakeContactsUpdater.m
Michael Kirk ccb4a88742 Import SSK (and history) into Signal-iOS
git remote add ssk ../SignalServiceKit
git remote update
git merge -s ours --allow-unrelated-histories --no-commit ssk/master
git read-tree --prefix=SignalServiceKit -u ssk/master
git commit
2017-07-21 13:55:01 -04:00

21 lines
550 B
Objective-C

//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "OWSFakeContactsUpdater.h"
#import "SignalRecipient.h"
NS_ASSUME_NONNULL_BEGIN
@implementation OWSFakeContactsUpdater
- (nullable SignalRecipient *)synchronousLookup:(NSString *)identifier error:(NSError **)error
{
NSLog(@"[OWSFakeContactsUpdater] Faking contact lookup.");
return [[SignalRecipient alloc] initWithTextSecureIdentifier:@"fake-recipient-id"
relay:nil];
}
@end
NS_ASSUME_NONNULL_END