Kick user to welcome screen if they have no account id

pull/1554/head
bemusementpark 9 months ago
parent 7111bb7725
commit 40b901d417

@ -125,7 +125,9 @@ public abstract class PassphraseRequiredActionBarActivity extends BaseActionBarA
}
private int getApplicationState(boolean locked) {
if (locked) {
if (TextSecurePreferences.getLocalNumber(this) == null) {
return STATE_WELCOME_SCREEN;
} else if (locked) {
return STATE_PROMPT_PASSPHRASE;
} else if (DatabaseUpgradeActivity.isUpdate(this)) {
return STATE_UPGRADE_DATABASE;

Loading…
Cancel
Save