WIP minimize

This commit is contained in:
Jason Robinson 2021-01-14 11:53:20 +02:00
parent 3da5049dc7
commit d4a58bdb2a
6 changed files with 108 additions and 75 deletions

View file

@ -26,6 +26,7 @@ import { _t } from "../languageHandler";
interface IState {
displayName?: string;
avatarUrl?: string;
hostSignupActive?: boolean;
}
export class OwnProfileStore extends AsyncStoreWithClient<IState> {
@ -41,6 +42,16 @@ export class OwnProfileStore extends AsyncStoreWithClient<IState> {
return OwnProfileStore.internalInstance;
}
public get isHostSignupActive(): boolean {
return this.state.hostSignupActive;
}
public async setHostSignupActive(status: boolean) {
await this.updateState({
hostSignupActive: status,
});
}
/**
* Gets the display name for the user, or null if not present.
*/