From 32153ec3795b85619cb70c1ed4466878d09ef69f Mon Sep 17 00:00:00 2001 From: christian mock Date: Wed, 5 Nov 2014 20:04:37 +0100 Subject: [PATCH] Use "sms_body" extra from Intent Closes #2071 --- src/org/thoughtcrime/securesms/RoutingActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/RoutingActivity.java b/src/org/thoughtcrime/securesms/RoutingActivity.java index 532532e56e..e794521435 100644 --- a/src/org/thoughtcrime/securesms/RoutingActivity.java +++ b/src/org/thoughtcrime/securesms/RoutingActivity.java @@ -196,7 +196,8 @@ public class RoutingActivity extends PassphraseRequiredActionBarActivity { private ConversationParameters getConversationParametersForSendAction() { Recipients recipients; - long threadId = getIntent().getLongExtra("thread_id", -1); + String body = getIntent().getStringExtra("sms_body"); + long threadId = getIntent().getLongExtra("thread_id", -1); try { String data = getIntent().getData().getSchemeSpecificPart(); @@ -206,7 +207,7 @@ public class RoutingActivity extends PassphraseRequiredActionBarActivity { recipients = null; } - return new ConversationParameters(threadId, recipients, null, null, null, null); + return new ConversationParameters(threadId, recipients, body, null, null, null); } private ConversationParameters getConversationParametersForShareAction() {