mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 08:47:46 +00:00
append invite link to message draft instead of overwrite it.
Fixes #2583 // FREEBIE
This commit is contained in:
parent
3a19ac432b
commit
76d0f45b9b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user