Fdroid people are worried about leaking jids

This commit is contained in:
Stephen Paul Weber 2023-05-01 08:50:13 -05:00 committed by Arne
parent 0ece2db350
commit fd6577b869

View file

@ -1263,8 +1263,24 @@ public class StartConversationActivity extends XmppActivity
if (onboardingAccount != null && !selectedAccount.getJid().equals(onboardingAccount.getJid())) {
FinishOnboarding.finish(xmppConnectionService, this, onboardingAccount, selectedAccount);
} else {
startCommand(selectedAccount, Jid.of("cheogram.com/CHEOGRAM%jabber:iq:register"), "jabber:iq:register");
finish();
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 {
startCommand(selectedAccount, Jid.of("cheogram.com/CHEOGRAM%jabber:iq:register"), "jabber:iq:register");
finish();
}
return;
}
}