File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ var RoomSubList = React.createClass({
511511 if ( list [ i ] . tags [ self . props . tagName ] && list [ i ] . tags [ self . props . tagName ] . order === undefined ) {
512512 MatrixClientPeg . get ( ) . setRoomTag ( list [ i ] . roomId , self . props . tagName , { order : ( order + 1.0 ) / 2.0 } ) . finally ( function ( ) {
513513 // Do any final stuff here
514- } ) . fail ( function ( err ) {
514+ } ) . catch ( function ( err ) {
515515 var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
516516 console . error ( "Failed to add tag " + self . props . tagName + " to room" + err ) ;
517517 Modal . createDialog ( ErrorDialog , {
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ module.exports = React.createClass({
6868 if ( self . props . onFinished ) {
6969 self . props . onFinished ( ) ;
7070 } ;
71- } ) . fail ( function ( err ) {
71+ } ) . catch ( function ( err ) {
7272 var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
7373 Modal . createDialog ( ErrorDialog , {
7474 title : _t ( 'Failed to remove tag %(tagName)s from room' , { tagName : tagNameOff } ) ,
@@ -85,7 +85,7 @@ module.exports = React.createClass({
8585 if ( self . props . onFinished ) {
8686 self . props . onFinished ( ) ;
8787 } ;
88- } ) . fail ( function ( err ) {
88+ } ) . catch ( function ( err ) {
8989 var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
9090 Modal . createDialog ( ErrorDialog , {
9191 title : _t ( 'Failed to remove tag %(tagName)s from room' , { tagName : tagNameOn } ) ,
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ var roomTileSource = {
111111 //component.state.set({ spinner: component.state.spinner ? component.state.spinner++ : 1 });
112112 MatrixClientPeg . get ( ) . deleteRoomTag ( item . room . roomId , prevTag ) . finally ( function ( ) {
113113 //component.state.set({ spinner: component.state.spinner-- });
114- } ) . fail ( function ( err ) {
114+ } ) . catch ( function ( err ) {
115115 var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
116116 console . error ( "Failed to remove tag " + prevTag + " from room: " + err ) ;
117117 Modal . createDialog ( ErrorDialog , {
You can’t perform that action at this time.
0 commit comments