mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
Enable shared contact sending.
This commit is contained in:
parent
707ca53a23
commit
290b184491
@ -429,13 +429,11 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
setMedia(data.getData(), MediaType.AUDIO);
|
setMedia(data.getData(), MediaType.AUDIO);
|
||||||
break;
|
break;
|
||||||
case PICK_CONTACT:
|
case PICK_CONTACT:
|
||||||
// TODO(greyson): Re-enable shared contact sending after receiving has been enabled for a few releases
|
if (isSecureText && !isSmsForced()) {
|
||||||
addAttachmentContactInfo(data.getData());
|
openContactShareEditor(data.getData());
|
||||||
// if (isSecureText && !isSmsForced()) {
|
} else {
|
||||||
// openContactShareEditor(data.getData());
|
addAttachmentContactInfo(data.getData());
|
||||||
// } else {
|
}
|
||||||
// addAttachmentContactInfo(data.getData());
|
|
||||||
// }
|
|
||||||
break;
|
break;
|
||||||
case GET_CONTACT_DETAILS:
|
case GET_CONTACT_DETAILS:
|
||||||
sendSharedContact(data.getParcelableArrayListExtra(ContactShareEditActivity.KEY_CONTACTS));
|
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) {
|
private void setMedia(@Nullable Uri uri, @NonNull MediaType mediaType, int width, int height) {
|
||||||
if (uri == null) return;
|
if (uri == null) return;
|
||||||
|
|
||||||
// TODO(greyson): Re-enable shared contact sending after receiving has been enabled for a few releases
|
if (MediaType.VCARD.equals(mediaType) && isSecureText) {
|
||||||
attachmentManager.setMedia(glideRequests, uri, mediaType, getCurrentMediaConstraints(), width, height);
|
openContactShareEditor(uri);
|
||||||
// if (MediaType.VCARD.equals(mediaType) && isSecureText) {
|
} else {
|
||||||
// openContactShareEditor(uri);
|
attachmentManager.setMedia(glideRequests, uri, mediaType, getCurrentMediaConstraints(), width, height);
|
||||||
// } else {
|
}
|
||||||
// attachmentManager.setMedia(glideRequests, uri, mediaType, getCurrentMediaConstraints(), width, height);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void openContactShareEditor(Uri contactUri) {
|
private void openContactShareEditor(Uri contactUri) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user