use correct default for notification silencing (#9388)
This commit is contained in:
parent
7c1c49540a
commit
9e055ee99d
2 changed files with 3 additions and 3 deletions
|
@ -51,5 +51,5 @@ export async function createLocalNotificationSettingsIfNeeded(cli: MatrixClient)
|
|||
export function localNotificationsAreSilenced(cli: MatrixClient): boolean {
|
||||
const eventType = getLocalNotificationAccountDataEventType(cli.deviceId);
|
||||
const event = cli.getAccountData(eventType);
|
||||
return event?.getContent<LocalNotificationSettings>()?.is_silenced ?? true;
|
||||
return event?.getContent<LocalNotificationSettings>()?.is_silenced ?? false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue