mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
Leaving the fail promise section blank as a todo, with explanitary comment
This commit is contained in:
parent
b87058508e
commit
49545ce0c2
1 changed files with 2 additions and 3 deletions
|
@ -56,7 +56,6 @@ module.exports = React.createClass({
|
|||
cli.setRoomMutePushRule(
|
||||
"global", roomId, isMuted
|
||||
).then(function() {
|
||||
console.log("DEBUG: then");
|
||||
self.setState({areNotifsMuted: isMuted});
|
||||
|
||||
// delay slightly so that the user can see their state change
|
||||
|
@ -66,8 +65,8 @@ module.exports = React.createClass({
|
|||
};
|
||||
});
|
||||
}).fail(function(error) {
|
||||
console.log("DEBUG: fail");
|
||||
console.log(error);
|
||||
// TODO: some form of error notification to the user
|
||||
// to inform them that their state change failed.
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue