Fix a couple of minor errors in the room list

bluebird promises don't support .fail, so some operations didn't work quite
right. We should use .catch instead.
This commit is contained in:
Richard van der Hoff 2017-07-24 17:19:46 +01:00
parent e923847dac
commit bc2f639aae
3 changed files with 4 additions and 4 deletions

View file

@ -511,7 +511,7 @@ var RoomSubList = React.createClass({
if (list[i].tags[self.props.tagName] && list[i].tags[self.props.tagName].order === undefined) {
MatrixClientPeg.get().setRoomTag(list[i].roomId, self.props.tagName, {order: (order + 1.0) / 2.0}).finally(function() {
// Do any final stuff here
}).fail(function(err) {
}).catch(function(err) {
var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
console.error("Failed to add tag " + self.props.tagName + " to room" + err);
Modal.createDialog(ErrorDialog, {