@@ -41,27 +41,31 @@ Please see LICENSE files in the repository root for full details.
4141 * │ │ │ │ "Sign in instead" ▲
4242 * │ │ └────────────────────────────────┐ │ │
4343 * │ └────────────────────────────────────────┐ │ │ │
44- * │ ▼ ▼ ▼ │
45- * │ ┌──────────────────┐ │
46- * │ │ (postLoginSetup) │ │
47- * │ └──────────────────┘ │
48- * │ ┌────────────────────────────────────┘ │ │ │
49- * │ │ E2EE not enabled ┌─────────────┘ └──────┐ │
50- * │ │ │ Account has │ Account lacks │
51- * │ │ │ cross-signing │ cross-signing │
52- * │ │ │ keys │ keys │
53- * │ │ Client started and ▼ ▼ │
54- * │ │ force_verification ┌─────────────────┐ ┌─────────────────┐ │
55- * │ │ pending │ COMPLETE_ │ │ E2E_SETUP │ │
56- * │ │ ┌─────────────────►│ SECURITY │ │ │ │
57- * │ │ │ └─────────────────┘ └─────────────────┘ │ "Forgotten
58- * │ │ │ ┌───────────────────────┘ │ │ your
59- * │ │ │ │ ┌───────────────────────────────────────────────┘ │ password?"
60- * │ │ │ │ │ │
61- * │ │ │ │ │ (from all other states │
62- * │ │ │ │ │ except LOCK_STOLEN) │
63- * │ │ │ │ │ └──────────────┐ │
64- * ▼ ▼ │ ▼ ▼ Soft logout error ▼ │
44+ * ▼ ▼ ▼ ▼ │
45+ * ┌─────────────────┐ ┌──────────────────┐ │
46+ * │ PENDING_CLIENT_ │ │ (postLoginSetup) │ │
47+ * │ START │ └──────────────────┘ │
48+ * └─────────────────┘ Account has │ │ │ Account lacks │
49+ * │ │ cross-signing │ │ │ cross-signing │
50+ * │ └───┐ keys │ │ │ keys │
51+ * │ Client │ │ │ │ │
52+ * │ started, │ Client started and │ │ │ │
53+ * │ force_verif │ force_verification │ │ └──────┐ │
54+ * │ not reqd │ pending │ │ │ │
55+ * │ ▼ │ │ │ │
56+ * │ ┌─────────────────┐ │ │ │ │
57+ * │ │ COMPLETE_ │◄─────────────────┘ │ ▼ │
58+ * │ │ SECURITY │ │ ┌─────────────────┐ │
59+ * │ └─────────────────┘ │ │ E2E_SETUP │ │
60+ * │ │ │ │ │ │
61+ * │ ┌─────────┘ E2EE not enabled │ └─────────────────┘ │ "Forgotten
62+ * │ │ ┌──────────────────────────────────────┘ │ │ your
63+ * │ │ │ ┌───────────────────────────────────────────────┘ │ password?"
64+ * │ │ │ │ │
65+ * │ │ │ │ (from all other states │
66+ * │ │ │ │ except LOCK_STOLEN) │
67+ * │ │ │ │ └──────────────┐ │
68+ * ▼ ▼ ▼ ▼ Soft logout error ▼ │
6569 * ┌─────────────────┐ ┌─────────────────┐
6670 * │ LOGGED_IN │ Re-authentication succeeded │ SOFT_LOGOUT │
6771 * │ │◄────────────────────────────────────────────────────────│ │
@@ -102,6 +106,12 @@ enum Views {
102106 // flow to setup SSSS / cross-signing on this account
103107 E2E_SETUP ,
104108
109+ /**
110+ * We have successfully recovered a session from localstorage, but the client
111+ * has not yet been started.
112+ */
113+ PENDING_CLIENT_START ,
114+
105115 // we are logged in with an active matrix client. The logged_in state also
106116 // includes guests users as they too are logged in at the client level.
107117 LOGGED_IN ,
0 commit comments