From 2c1693c941554450cf070b9b154ad8117cb28e99 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Tue, 3 Jul 2018 18:15:07 -0600 Subject: [PATCH] Revert "Revert "Revert "Disable contact sharing.""" This reverts commit 57e3d0d5f9c528e14f14e34ab77399504827e6d0. --- 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 9041dcea2..a05c514b8 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 9d77d9b19..62a023932 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