mirror of https://github.com/vector-im/riot-web
Use m.notification.sound
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…
Reference in New Issue