mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25:19 +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) {
|
private int getApplicationState(boolean locked) {
|
||||||
if (locked) {
|
if (TextSecurePreferences.getLocalNumber(this) == null) {
|
||||||
|
return STATE_WELCOME_SCREEN;
|
||||||
|
} else if (locked) {
|
||||||
return STATE_PROMPT_PASSPHRASE;
|
return STATE_PROMPT_PASSPHRASE;
|
||||||
} else if (DatabaseUpgradeActivity.isUpdate(this)) {
|
} else if (DatabaseUpgradeActivity.isUpdate(this)) {
|
||||||
return STATE_UPGRADE_DATABASE;
|
return STATE_UPGRADE_DATABASE;
|
||||||
|
Loading…
Reference in New Issue
Block a user