Web: simplify logout message

This commit is contained in:
Peter Steinberger
2025-12-03 11:04:12 +00:00
parent e34d0d69aa
commit 62c54cd47c

View File

@@ -163,11 +163,7 @@ export async function logoutWeb(runtime: RuntimeEnv = defaultRuntime) {
await fs.rm(WA_WEB_AUTH_DIR, { recursive: true, force: true });
// Also drop session store to clear lingering per-sender state after logout.
await fs.rm(SESSION_STORE_DEFAULT, { force: true });
runtime.log(
success(
"Cleared WhatsApp Web credentials. Run `warelay login --provider web` to relink.",
),
);
runtime.log(success("Cleared WhatsApp Web credentials."));
return true;
}