Refine unread marker and reset registration flow

This commit is contained in:
AidarKC
2026-08-21 15:04:29 +04:00
parent fef7694b48
commit 0a4c31fb36
5 changed files with 33 additions and 6 deletions
+8
View File
@@ -925,6 +925,14 @@ export async function refreshSessions() {
return state.sessions;
}
export function resetRegistrationFlow() {
const next = createInitialState();
state.registrationDraft = next.registrationDraft;
state.registrationHelp = next.registrationHelp;
state.registrationPayment = next.registrationPayment;
state.keyStorage = next.keyStorage;
}
function resetStateForSignedOut() {
const next = createInitialState({ withStoredSession: false });
state.chats = next.chats;