@@ -322,33 +322,33 @@ const getCapabilitiesFromRole = (
322
322
) : CapabilitiesFeatureState | undefined => {
323
323
if ( isReactionCapability ) {
324
324
return {
325
- capabilities : presenterCapabilitiesInTeamsCall ,
325
+ capabilities : presenterCapabilitiesInTeamsCall ( ) ,
326
326
latestCapabilitiesChangeInfo : { oldValue : { } , newValue : { } , reason : 'RoleChanged' }
327
327
} ;
328
328
}
329
329
330
330
switch ( role ) {
331
331
case 'Attendee' :
332
332
return {
333
- capabilities : attendeeCapabilitiesInRoomsCall ,
333
+ capabilities : attendeeCapabilitiesInRoomsCall ( ) ,
334
334
latestCapabilitiesChangeInfo : { oldValue : { } , newValue : { } , reason : 'RoleChanged' }
335
335
} ;
336
336
case 'Consumer' :
337
337
return {
338
- capabilities : consumerCapabilitiesInRoomsCall ,
338
+ capabilities : consumerCapabilitiesInRoomsCall ( ) ,
339
339
latestCapabilitiesChangeInfo : { oldValue : { } , newValue : { } , reason : 'RoleChanged' }
340
340
} ;
341
341
case 'Presenter' :
342
342
return {
343
- capabilities : presenterCapabilitiesInRoomsCall ,
343
+ capabilities : presenterCapabilitiesInRoomsCall ( ) ,
344
344
latestCapabilitiesChangeInfo : { oldValue : { } , newValue : { } , reason : 'RoleChanged' }
345
345
} ;
346
346
default :
347
347
return undefined ;
348
348
}
349
349
} ;
350
350
351
- const consumerCapabilitiesInRoomsCall : ParticipantCapabilities = {
351
+ const consumerCapabilitiesInRoomsCall = ( ) : ParticipantCapabilities => ( {
352
352
addCommunicationUser : { isPresent : false , reason : 'CapabilityNotApplicableForTheCallType' } ,
353
353
addPhoneNumber : { isPresent : false , reason : 'CapabilityNotApplicableForTheCallType' } ,
354
354
addTeamsUser : { isPresent : false , reason : 'CapabilityNotApplicableForTheCallType' } ,
@@ -398,9 +398,9 @@ const consumerCapabilitiesInRoomsCall: ParticipantCapabilities = {
398
398
isPresent : false ,
399
399
reason : 'CapabilityNotApplicableForTheCallType'
400
400
}
401
- } ;
401
+ } ) ;
402
402
403
- const attendeeCapabilitiesInRoomsCall : ParticipantCapabilities = {
403
+ const attendeeCapabilitiesInRoomsCall = ( ) : ParticipantCapabilities => ( {
404
404
addCommunicationUser : { isPresent : false , reason : 'CapabilityNotApplicableForTheCallType' } ,
405
405
addPhoneNumber : { isPresent : false , reason : 'CapabilityNotApplicableForTheCallType' } ,
406
406
addTeamsUser : { isPresent : false , reason : 'CapabilityNotApplicableForTheCallType' } ,
@@ -450,9 +450,9 @@ const attendeeCapabilitiesInRoomsCall: ParticipantCapabilities = {
450
450
isPresent : false ,
451
451
reason : 'CapabilityNotApplicableForTheCallType'
452
452
}
453
- } ;
453
+ } ) ;
454
454
455
- const presenterCapabilitiesInRoomsCall : ParticipantCapabilities = {
455
+ const presenterCapabilitiesInRoomsCall = ( ) : ParticipantCapabilities => ( {
456
456
addCommunicationUser : { isPresent : false , reason : 'CapabilityNotApplicableForTheCallType' } ,
457
457
addPhoneNumber : { isPresent : false , reason : 'CapabilityNotApplicableForTheCallType' } ,
458
458
addTeamsUser : { isPresent : false , reason : 'CapabilityNotApplicableForTheCallType' } ,
@@ -502,9 +502,9 @@ const presenterCapabilitiesInRoomsCall: ParticipantCapabilities = {
502
502
isPresent : false ,
503
503
reason : 'CapabilityNotApplicableForTheCallType'
504
504
}
505
- } ;
505
+ } ) ;
506
506
507
- const presenterCapabilitiesInTeamsCall : ParticipantCapabilities = {
507
+ const presenterCapabilitiesInTeamsCall = ( ) : ParticipantCapabilities => ( {
508
508
addCommunicationUser : { isPresent : false , reason : 'CapabilityNotApplicableForTheCallType' } ,
509
509
addPhoneNumber : { isPresent : false , reason : 'CapabilityNotApplicableForTheCallType' } ,
510
510
addTeamsUser : { isPresent : false , reason : 'CapabilityNotApplicableForTheCallType' } ,
@@ -554,7 +554,7 @@ const presenterCapabilitiesInTeamsCall: ParticipantCapabilities = {
554
554
isPresent : true ,
555
555
reason : 'CapabilityNotApplicableForTheCallType'
556
556
}
557
- } ;
557
+ } ) ;
558
558
559
559
const defaultEndedCallState : CallState = {
560
560
id : 'call0' ,
0 commit comments