Preferences page

This commit is contained in:
2023-08-21 14:58:57 +01:00
parent 35423cc91b
commit 976f841d0b
45 changed files with 484 additions and 467 deletions

View File

@ -158,6 +158,7 @@ export class MultiAccountStore extends ExternalStore<LoginSession> {
const pk = unwrap(s.publicKey);
if (this.#accounts.has(pk)) {
this.#accounts.set(pk, s);
console.debug("SET SESSION", s);
this.#save();
}
}
@ -175,7 +176,7 @@ export class MultiAccountStore extends ExternalStore<LoginSession> {
const s = this.#activeAccount ? this.#accounts.get(this.#activeAccount) : undefined;
if (!s) return LoggedOut;
return s;
return { ...s };
}
#createPublisher(l: LoginSession) {