Skip account settings for guest users

Homeservers don't allow this currently, so we should use something else instead
for such cases.
This commit is contained in:
J. Ryan Stinnett 2021-01-14 15:58:26 +00:00
parent 7f51553723
commit cb66f7493b
2 changed files with 2 additions and 2 deletions

View file

@ -169,7 +169,7 @@ export default class AccountSettingsHandler extends MatrixClientBackedSettingsHa
public isSupported(): boolean {
const cli = MatrixClientPeg.get();
return cli !== undefined && cli !== null;
return cli !== undefined && cli !== null && !cli.isGuest();
}
private getSettings(eventType = "im.vector.web.settings"): any { // TODO: [TS] Types on return

View file

@ -129,7 +129,7 @@ export default class RoomAccountSettingsHandler extends MatrixClientBackedSettin
public isSupported(): boolean {
const cli = MatrixClientPeg.get();
return cli !== undefined && cli !== null;
return cli !== undefined && cli !== null && !cli.isGuest();
}
private getSettings(roomId: string, eventType = "im.vector.web.settings"): any { // TODO: [TS] Type return