diff --git a/src/org/thoughtcrime/securesms/ConversationActivity.java b/src/org/thoughtcrime/securesms/ConversationActivity.java index bc132643e9..cd4eea23a8 100644 --- a/src/org/thoughtcrime/securesms/ConversationActivity.java +++ b/src/org/thoughtcrime/securesms/ConversationActivity.java @@ -429,13 +429,11 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity setMedia(data.getData(), MediaType.AUDIO); break; case PICK_CONTACT: - // TODO(greyson): Re-enable shared contact sending after receiving has been enabled for a few releases - addAttachmentContactInfo(data.getData()); -// if (isSecureText && !isSmsForced()) { -// openContactShareEditor(data.getData()); -// } else { -// addAttachmentContactInfo(data.getData()); -// } + if (isSecureText && !isSmsForced()) { + openContactShareEditor(data.getData()); + } else { + addAttachmentContactInfo(data.getData()); + } break; case GET_CONTACT_DETAILS: sendSharedContact(data.getParcelableArrayListExtra(ContactShareEditActivity.KEY_CONTACTS)); @@ -1400,13 +1398,11 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity private void setMedia(@Nullable Uri uri, @NonNull MediaType mediaType, int width, int height) { if (uri == null) return; - // TODO(greyson): Re-enable shared contact sending after receiving has been enabled for a few releases - attachmentManager.setMedia(glideRequests, uri, mediaType, getCurrentMediaConstraints(), width, height); -// if (MediaType.VCARD.equals(mediaType) && isSecureText) { -// openContactShareEditor(uri); -// } else { -// attachmentManager.setMedia(glideRequests, uri, mediaType, getCurrentMediaConstraints(), width, height); -// } + if (MediaType.VCARD.equals(mediaType) && isSecureText) { + openContactShareEditor(uri); + } else { + attachmentManager.setMedia(glideRequests, uri, mediaType, getCurrentMediaConstraints(), width, height); + } } private void openContactShareEditor(Uri contactUri) {