forked from matrix/element-web
Leaving the fail promise section blank as a todo, with explanitary comment
This commit is contained in:
parent
b87058508e
commit
49545ce0c2
|
@ -56,7 +56,6 @@ module.exports = React.createClass({
|
||||||
cli.setRoomMutePushRule(
|
cli.setRoomMutePushRule(
|
||||||
"global", roomId, isMuted
|
"global", roomId, isMuted
|
||||||
).then(function() {
|
).then(function() {
|
||||||
console.log("DEBUG: then");
|
|
||||||
self.setState({areNotifsMuted: isMuted});
|
self.setState({areNotifsMuted: isMuted});
|
||||||
|
|
||||||
// delay slightly so that the user can see their state change
|
// delay slightly so that the user can see their state change
|
||||||
|
@ -66,8 +65,8 @@ module.exports = React.createClass({
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}).fail(function(error) {
|
}).fail(function(error) {
|
||||||
console.log("DEBUG: fail");
|
// TODO: some form of error notification to the user
|
||||||
console.log(error);
|
// to inform them that their state change failed.
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue