Do not create account data event for guests (#9407)
* Do not create account data event for guests * fix test
This commit is contained in:
parent
7a1c47a23e
commit
714ba6db94
2 changed files with 24 additions and 12 deletions
|
@ -31,6 +31,9 @@ export function getLocalNotificationAccountDataEventType(deviceId: string): stri
|
|||
}
|
||||
|
||||
export async function createLocalNotificationSettingsIfNeeded(cli: MatrixClient): Promise<void> {
|
||||
if (cli.isGuest()) {
|
||||
return;
|
||||
}
|
||||
const eventType = getLocalNotificationAccountDataEventType(cli.deviceId);
|
||||
const event = cli.getAccountData(eventType);
|
||||
// New sessions will create an account data event to signify they support
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue