From a62e86c7ab2d061c73240d864c32c5b73aef9612 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Tue, 15 May 2018 17:07:18 -0400 Subject: [PATCH] Revert "Disable contact sharing." This reverts commit e27af7a66d3812b53bda7eead0908d5cc5496a8e. --- SignalServiceKit/src/Messages/Interactions/OWSContact.m | 2 +- SignalShareExtension/Info.plist | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/SignalServiceKit/src/Messages/Interactions/OWSContact.m b/SignalServiceKit/src/Messages/Interactions/OWSContact.m index 838058cc2..64df4513e 100644 --- a/SignalServiceKit/src/Messages/Interactions/OWSContact.m +++ b/SignalServiceKit/src/Messages/Interactions/OWSContact.m @@ -20,7 +20,7 @@ NS_ASSUME_NONNULL_BEGIN // NOTE: When changing the value of this feature flag, you also need // to update the filtering in the SAE's info.plist. -BOOL kIsSendingContactSharesEnabled = NO; +BOOL kIsSendingContactSharesEnabled = YES; NSString *NSStringForContactPhoneType(OWSContactPhoneType value) { diff --git a/SignalShareExtension/Info.plist b/SignalShareExtension/Info.plist index 204832cc1..b16307cac 100644 --- a/SignalShareExtension/Info.plist +++ b/SignalShareExtension/Info.plist @@ -60,11 +60,8 @@ SUBQUERY ( $extensionItem.attachments, $attachment, - ( ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.data" || ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url" - ) - AND NOT (ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.vcard") ).@count >= 1 ).@count == 1