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:
parent
7f51553723
commit
cb66f7493b
2 changed files with 2 additions and 2 deletions
|
@ -169,7 +169,7 @@ export default class AccountSettingsHandler extends MatrixClientBackedSettingsHa
|
||||||
|
|
||||||
public isSupported(): boolean {
|
public isSupported(): boolean {
|
||||||
const cli = MatrixClientPeg.get();
|
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
|
private getSettings(eventType = "im.vector.web.settings"): any { // TODO: [TS] Types on return
|
||||||
|
|
|
@ -129,7 +129,7 @@ export default class RoomAccountSettingsHandler extends MatrixClientBackedSettin
|
||||||
|
|
||||||
public isSupported(): boolean {
|
public isSupported(): boolean {
|
||||||
const cli = MatrixClientPeg.get();
|
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
|
private getSettings(roomId: string, eventType = "im.vector.web.settings"): any { // TODO: [TS] Type return
|
||||||
|
|
Loading…
Reference in a new issue