mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-16 06:32:22 +01:00
Fdroid people are worried about leaking jids
This commit is contained in:
parent
9189148697
commit
bda7beee10
1 changed files with 18 additions and 2 deletions
|
@ -1262,9 +1262,25 @@ public class StartConversationActivity extends XmppActivity
|
||||||
if (!hasPstnOrSms) {
|
if (!hasPstnOrSms) {
|
||||||
if (onboardingAccount != null && !selectedAccount.getJid().equals(onboardingAccount.getJid())) {
|
if (onboardingAccount != null && !selectedAccount.getJid().equals(onboardingAccount.getJid())) {
|
||||||
FinishOnboarding.finish(xmppConnectionService, this, onboardingAccount, selectedAccount);
|
FinishOnboarding.finish(xmppConnectionService, this, onboardingAccount, selectedAccount);
|
||||||
|
} else {
|
||||||
|
if (onboardingAccount == null) {
|
||||||
|
final Account selAccount = selectedAccount;
|
||||||
|
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||||
|
builder.setTitle("Setup Phone Service?");
|
||||||
|
builder.setMessage("Would you like to set up a phone number provider now?");
|
||||||
|
builder.setPositiveButton(R.string.yes, (dialog, which) -> {
|
||||||
|
startCommand(selAccount, Jid.of("cheogram.com/CHEOGRAM%jabber:iq:register"), "jabber:iq:register");
|
||||||
|
finish();
|
||||||
|
});
|
||||||
|
builder.setNegativeButton(R.string.no, (dialog, which) -> {
|
||||||
|
});
|
||||||
|
final AlertDialog dialog = builder.create();
|
||||||
|
dialog.setCanceledOnTouchOutside(false);
|
||||||
|
dialog.show();
|
||||||
} else {
|
} else {
|
||||||
startCommand(selectedAccount, Jid.of("cheogram.com/CHEOGRAM%jabber:iq:register"), "jabber:iq:register");
|
startCommand(selectedAccount, Jid.of("cheogram.com/CHEOGRAM%jabber:iq:register"), "jabber:iq:register");
|
||||||
finish();
|
finish();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue