mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Support intents with mailto:-links, show preview before sending a message.
This commit is contained in:
@@ -2691,16 +2691,12 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not
|
||||
|
||||
private void createChat(String urlFinal)
|
||||
{
|
||||
int contactId = MrMailbox.createContact("", urlFinal);
|
||||
int chatId = MrMailbox.createChatByContactId(contactId);
|
||||
int chatId = MrMailbox.createChatByContactId(MrMailbox.createContact("", urlFinal));
|
||||
if( chatId != 0 ) {
|
||||
Bundle args = new Bundle();
|
||||
args.putInt("chat_id", chatId);
|
||||
presentFragment(new ChatActivity(args), true /*removeLast*/);
|
||||
}
|
||||
else {
|
||||
Toast.makeText(getParentActivity(), "Cannot create chat.", Toast.LENGTH_LONG).show(); // should not happen
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user