~singpolyma/cheogram-android

64abe776672e39f9627bd7cb3ee4a204be10ad23 — Stephen Paul Weber 1 year, 7 months ago 2cc5d3b
Fdroid people are worried about leaking jids
1 files changed, 18 insertions(+), 2 deletions(-)

M src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java
M src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java => src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java +18 -2
@@ 1034,8 1034,24 @@ public class StartConversationActivity extends XmppActivity implements XmppConne
                        });
                    });
                } 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;
                }
            }