diff --git a/src/org/thoughtcrime/securesms/ConversationActivity.java b/src/org/thoughtcrime/securesms/ConversationActivity.java index ece8d4462e..69e7d040cc 100644 --- a/src/org/thoughtcrime/securesms/ConversationActivity.java +++ b/src/org/thoughtcrime/securesms/ConversationActivity.java @@ -343,9 +343,14 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity private void handleInviteLink() { try { + if (!TextUtils.isEmpty(composeText.getText()) && + !composeText.getText().toString().endsWith(" ")) + { + composeText.append(" "); + } boolean a = SecureRandom.getInstance("SHA1PRNG").nextBoolean(); - if (a) composeText.setText(getString(R.string.ConversationActivity_get_with_it, "http://sgnl.link/zhrzvk6")); - else composeText.setText(getString(R.string.ConversationActivity_install_textsecure, "http://sgnl.link/1yKYqoN")); + if (a) composeText.append(getString(R.string.ConversationActivity_get_with_it, "http://sgnl.link/zhrzvk6")); + else composeText.append(getString(R.string.ConversationActivity_install_textsecure, "http://sgnl.link/1yKYqoN")); } catch (NoSuchAlgorithmException e) { throw new AssertionError(e); }