@@ -82,7 +82,7 @@ module.exports = React.createClass({
8282 return ;
8383 }
8484 const ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
85- Modal . createDialog ( ErrorDialog , {
85+ Modal . createTrackedDialog ( 'Failed to get protocol list from Home Server' , '' , ErrorDialog , {
8686 title : _t ( 'Failed to get protocol list from Home Server' ) ,
8787 description : _t ( 'The Home Server may be too old to support third party networks' ) ,
8888 } ) ;
@@ -178,7 +178,7 @@ module.exports = React.createClass({
178178 this . setState ( { loading : false } ) ;
179179 console . error ( "Failed to get publicRooms: %s" , JSON . stringify ( err ) ) ;
180180 var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
181- Modal . createDialog ( ErrorDialog , {
181+ Modal . createTrackedDialog ( 'Failed to get public room list' , '' , ErrorDialog , {
182182 title : _t ( 'Failed to get public room list' ) ,
183183 description : ( ( err && err . message ) ? err . message : _t ( 'The server may be unavailable or overloaded' ) )
184184 } ) ;
@@ -206,7 +206,7 @@ module.exports = React.createClass({
206206 desc = _t ( 'Remove %(name)s from the directory?' , { name : name } ) ;
207207 }
208208
209- Modal . createDialog ( QuestionDialog , {
209+ Modal . createTrackedDialog ( 'Remove from Directory' , '' , QuestionDialog , {
210210 title : _t ( 'Remove from Directory' ) ,
211211 description : desc ,
212212 onFinished : ( should_delete ) => {
@@ -227,7 +227,7 @@ module.exports = React.createClass({
227227 modal . close ( ) ;
228228 this . refreshRoomList ( ) ;
229229 console . error ( "Failed to " + step + ": " + err ) ;
230- Modal . createDialog ( ErrorDialog , {
230+ Modal . createTrackedDialog ( 'Remove from Directory Error' , '' , ErrorDialog , {
231231 title : _t ( 'Error' ) ,
232232 description : ( ( err && err . message ) ? err . message : _t ( 'The server may be unavailable or overloaded' ) )
233233 } ) ;
@@ -316,7 +316,7 @@ module.exports = React.createClass({
316316 const fields = protocolName ? this . _getFieldsForThirdPartyLocation ( alias , this . protocols [ protocolName ] , instance ) : null ;
317317 if ( ! fields ) {
318318 const ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
319- Modal . createDialog ( ErrorDialog , {
319+ Modal . createTrackedDialog ( 'Unable to join network' , '' , ErrorDialog , {
320320 title : _t ( 'Unable to join network' ) ,
321321 description : _t ( 'Riot does not know how to join a room on this network' ) ,
322322 } ) ;
@@ -327,14 +327,14 @@ module.exports = React.createClass({
327327 this . showRoomAlias ( resp [ 0 ] . alias ) ;
328328 } else {
329329 const ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
330- Modal . createDialog ( ErrorDialog , {
330+ Modal . createTrackedDialog ( 'Room not found' , '' , ErrorDialog , {
331331 title : _t ( 'Room not found' ) ,
332332 description : _t ( 'Couldn\'t find a matching Matrix room' ) ,
333333 } ) ;
334334 }
335335 } , ( e ) => {
336336 const ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
337- Modal . createDialog ( ErrorDialog , {
337+ Modal . createTrackedDialog ( 'Fetching third party location failed' , '' , ErrorDialog , {
338338 title : _t ( 'Fetching third party location failed' ) ,
339339 description : _t ( 'Unable to look up room ID from server' ) ,
340340 } ) ;
0 commit comments