Room settings: Added notifications mute checkbox

This commit is contained in:
manuroe 2016-01-14 19:06:48 +01:00
parent 7985413893
commit f868f7813b
2 changed files with 25 additions and 0 deletions

View file

@ -804,6 +804,13 @@ module.exports = React.createClass({
);
}
// setRoomMutePushRule will do nothing if there is no change
deferreds.push(
MatrixClientPeg.get().setRoomMutePushRule(
"global", this.state.room.roomId, newVals.are_notifications_muted
)
);
if (newVals.power_levels) {
deferreds.push(
MatrixClientPeg.get().sendStateEvent(
@ -908,6 +915,7 @@ module.exports = React.createClass({
topic: this.refs.room_settings.getTopic(),
join_rule: this.refs.room_settings.getJoinRules(),
history_visibility: this.refs.room_settings.getHistoryVisibility(),
are_notifications_muted: this.refs.room_settings.areNotificationsMuted(),
power_levels: this.refs.room_settings.getPowerLevels(),
guest_join: this.refs.room_settings.canGuestsJoin(),
guest_read: this.refs.room_settings.canGuestsRead()