mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
share address for email contacts
This commit is contained in:
@@ -390,7 +390,12 @@ public class ProfileActivity extends PassphraseRequiredActionBarActivity
|
||||
|
||||
private void onShare() {
|
||||
Intent composeIntent = new Intent();
|
||||
RelayUtil.setSharedContactId(composeIntent, contactId);
|
||||
DcContact dcContact = dcContext.getContact(contactId);
|
||||
if (dcContact.isKeyContact()) {
|
||||
RelayUtil.setSharedContactId(composeIntent, contactId);
|
||||
} else {
|
||||
RelayUtil.setSharedText(composeIntent, dcContact.getAddr());
|
||||
}
|
||||
ConversationListRelayingActivity.start(this, composeIntent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user