mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge branch 'fix-open-chat'
This commit is contained in:
@@ -200,6 +200,19 @@ public class ShareActivity extends PassphraseRequiredActionBarActivity implement
|
||||
}
|
||||
|
||||
private void handleResolvedMedia(Intent intent) {
|
||||
|
||||
if(getIntent().getStringArrayExtra(Intent.EXTRA_EMAIL) != null)
|
||||
{
|
||||
final String addr = getIntent().getStringArrayExtra(Intent.EXTRA_EMAIL)[0];
|
||||
int contactId = dcContext.lookupContactIdByAddr(addr);
|
||||
|
||||
if(contactId == 0)
|
||||
contactId = dcContext.createContact(null, addr);
|
||||
|
||||
int chatId = dcContext.createChatByContactId(contactId);
|
||||
intent.putExtra(EXTRA_CHAT_ID, chatId);
|
||||
}
|
||||
|
||||
int chatId = intent.getIntExtra(EXTRA_CHAT_ID, -1);
|
||||
Intent composeIntent = getBaseShareIntent(ConversationListActivity.class);
|
||||
RelayUtil.setSharedUris(composeIntent, resolvedExtras);
|
||||
|
||||
Reference in New Issue
Block a user