mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-12 20:53:38 +00:00
Kick user to welcome screen if they have no account id
This commit is contained in:
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…
x
Reference in New Issue
Block a user