@@ -143,7 +143,7 @@ function _setCallListeners(call) {
143
143
pause ( "ringbackAudio" ) ;
144
144
play ( "busyAudio" ) ;
145
145
var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
146
- Modal . createDialog ( ErrorDialog , {
146
+ Modal . createTrackedDialog ( 'Call Handler' , 'Call Timeout' , ErrorDialog , {
147
147
title : _t ( 'Call Timeout' ) ,
148
148
description : _t ( 'The remote side failed to pick up' ) + '.' ,
149
149
} ) ;
@@ -205,7 +205,7 @@ function _onAction(payload) {
205
205
_setCallState ( undefined , newCall . roomId , "ended" ) ;
206
206
console . log ( "Can't capture screen: " + screenCapErrorString ) ;
207
207
const ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
208
- Modal . createDialog ( ErrorDialog , {
208
+ Modal . createTrackedDialog ( 'Call Handler' , 'Unable to capture screen' , ErrorDialog , {
209
209
title : _t ( 'Unable to capture screen' ) ,
210
210
description : screenCapErrorString ,
211
211
} ) ;
@@ -225,7 +225,7 @@ function _onAction(payload) {
225
225
case 'place_call' :
226
226
if ( module . exports . getAnyActiveCall ( ) ) {
227
227
const ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
228
- Modal . createDialog ( ErrorDialog , {
228
+ Modal . createTrackedDialog ( 'Call Handler' , 'Existing Call' , ErrorDialog , {
229
229
title : _t ( 'Existing Call' ) ,
230
230
description : _t ( 'You are already in a call.' ) ,
231
231
} ) ;
@@ -235,7 +235,7 @@ function _onAction(payload) {
235
235
// if the runtime env doesn't do VoIP, whine.
236
236
if ( ! MatrixClientPeg . get ( ) . supportsVoip ( ) ) {
237
237
const ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
238
- Modal . createDialog ( ErrorDialog , {
238
+ Modal . createTrackedDialog ( 'Call Handler' , 'VoIP is unsupported' , ErrorDialog , {
239
239
title : _t ( 'VoIP is unsupported' ) ,
240
240
description : _t ( 'You cannot place VoIP calls in this browser.' ) ,
241
241
} ) ;
@@ -251,7 +251,7 @@ function _onAction(payload) {
251
251
var members = room . getJoinedMembers ( ) ;
252
252
if ( members . length <= 1 ) {
253
253
const ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
254
- Modal . createDialog ( ErrorDialog , {
254
+ Modal . createTrackedDialog ( 'Call Handler' , 'Cannot place call with self' , ErrorDialog , {
255
255
description : _t ( 'You cannot place a call with yourself.' ) ,
256
256
} ) ;
257
257
return ;
@@ -277,13 +277,13 @@ function _onAction(payload) {
277
277
console . log ( "Place conference call in %s" , payload . room_id ) ;
278
278
if ( ! ConferenceHandler ) {
279
279
const ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
280
- Modal . createDialog ( ErrorDialog , {
280
+ Modal . createTrackedDialog ( 'Call Handler' , 'Conference call unsupported client' , ErrorDialog , {
281
281
description : _t ( 'Conference calls are not supported in this client' ) ,
282
282
} ) ;
283
283
}
284
284
else if ( ! MatrixClientPeg . get ( ) . supportsVoip ( ) ) {
285
285
const ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
286
- Modal . createDialog ( ErrorDialog , {
286
+ Modal . createTrackedDialog ( 'Call Handler' , 'VoIP is unsupported' , ErrorDialog , {
287
287
title : _t ( 'VoIP is unsupported' ) ,
288
288
description : _t ( 'You cannot place VoIP calls in this browser.' ) ,
289
289
} ) ;
@@ -296,13 +296,13 @@ function _onAction(payload) {
296
296
// participant.
297
297
// Therefore we disable conference calling in E2E rooms.
298
298
const ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
299
- Modal . createDialog ( ErrorDialog , {
299
+ Modal . createTrackedDialog ( 'Call Handler' , 'Conference calls unsupported e2e' , ErrorDialog , {
300
300
description : _t ( 'Conference calls are not supported in encrypted rooms' ) ,
301
301
} ) ;
302
302
}
303
303
else {
304
304
var QuestionDialog = sdk . getComponent ( "dialogs.QuestionDialog" ) ;
305
- Modal . createDialog ( QuestionDialog , {
305
+ Modal . createTrackedDialog ( 'Call Handler' , 'Conference calling in development' , QuestionDialog , {
306
306
title : _t ( 'Warning!' ) ,
307
307
description : _t ( 'Conference calling is in development and may not be reliable.' ) ,
308
308
onFinished : confirm => {
@@ -314,7 +314,7 @@ function _onAction(payload) {
314
314
} , function ( err ) {
315
315
const ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
316
316
console . error ( "Conference call failed: " + err ) ;
317
- Modal . createDialog ( ErrorDialog , {
317
+ Modal . createTrackedDialog ( 'Call Handler' , 'Failed to set up conference call' , ErrorDialog , {
318
318
title : _t ( 'Failed to set up conference call' ) ,
319
319
description : _t ( 'Conference call failed.' ) + ' ' + ( ( err && err . message ) ? err . message : '' ) ,
320
320
} ) ;
0 commit comments