WIP minimize
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user