mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-20 23:21:30 +00:00
Bitly links now support HTTPS - Yay!
Both invite links now work over `https` -- yes I tested :-) More info: https://github.com/EFForg/https-everywhere/pull/4505 http://webmasters.stackexchange.com/questions/87163/do-bitly-branded-short-domains-support-https/92407#92407 PS: https://sgnl.link/1IvurmD also works. Closes #5460 Fixes #4060 // FREEBIE
This commit is contained in:
parent
49a539a985
commit
7292d08272
@ -527,8 +527,8 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||||||
private void handleInviteLink() {
|
private void handleInviteLink() {
|
||||||
try {
|
try {
|
||||||
boolean a = SecureRandom.getInstance("SHA1PRNG").nextBoolean();
|
boolean a = SecureRandom.getInstance("SHA1PRNG").nextBoolean();
|
||||||
if (a) composeText.appendInvite(getString(R.string.ConversationActivity_lets_switch_to_signal, "http://sgnl.link/1LoIMUl"));
|
if (a) composeText.appendInvite(getString(R.string.ConversationActivity_lets_switch_to_signal, "https://sgnl.link/1LoIMUl"));
|
||||||
else composeText.appendInvite(getString(R.string.ConversationActivity_lets_use_this_to_chat, "http://sgnl.link/1MF56H1"));
|
else composeText.appendInvite(getString(R.string.ConversationActivity_lets_use_this_to_chat, "https://sgnl.link/1MF56H1"));
|
||||||
} catch (NoSuchAlgorithmException e) {
|
} catch (NoSuchAlgorithmException e) {
|
||||||
throw new AssertionError(e);
|
throw new AssertionError(e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user