mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Use m.notification.sound
This commit is contained in:
parent
0f2cd6ea73
commit
8258e93337
@ -73,6 +73,10 @@ export default class AccountSettingsHandler extends MatrixClientBackedSettingsHa
|
||||
return !content['disable'];
|
||||
}
|
||||
|
||||
if (settingName === "notificationsEnabled") {
|
||||
return this._getSettings("m.notification.sound");
|
||||
}
|
||||
|
||||
// Special case for breadcrumbs
|
||||
if (settingName === "breadcrumb_rooms") {
|
||||
const content = this._getSettings(BREADCRUMBS_EVENT_TYPE) || {};
|
||||
|
||||
@ -67,6 +67,10 @@ export default class RoomSettingsHandler extends MatrixClientBackedSettingsHandl
|
||||
if (typeof(content['disable']) !== "boolean") return null;
|
||||
return !content['disable'];
|
||||
}
|
||||
|
||||
if (settingName === "notificationsEnabled") {
|
||||
return this._getSettings(roomId, "m.notification.sound");
|
||||
}
|
||||
|
||||
const settings = this._getSettings(roomId) || {};
|
||||
return settings[settingName];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user