don't delete account if it's not yet created - fixes crash

This commit is contained in:
Christian Schneppe 2018-02-19 20:49:20 +01:00
parent 81c6addd59
commit 6c65bb9334

View file

@ -326,7 +326,6 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
xmppConnectionService.deleteAccount(mAccount);
}
if (xmppConnectionService.getAccounts().size() == 0) {
xmppConnectionService.deleteAccount(mAccount);
Intent intent = new Intent(EditAccountActivity.this, WelcomeActivity.class);
WelcomeActivity.addInviteUri(intent, getIntent());
startActivity(intent);