@@ -359,7 +359,7 @@ describe("MatrixRTCSession", () => {
359
359
360
360
it ( "sends a notification when starting a call" , async ( ) => {
361
361
// Simulate a join, including the update to the room state
362
- sess ! . joinRoomSession ( [ mockFocus ] , mockFocus , { notifyType : "ring" } ) ;
362
+ sess ! . joinRoomSession ( [ mockFocus ] , mockFocus , { notificationType : "ring" } ) ;
363
363
await Promise . race ( [ sentStateEvent , new Promise ( ( resolve ) => setTimeout ( resolve , 5000 ) ) ] ) ;
364
364
mockRoomState ( mockRoom , [ { ...membershipTemplate , user_id : client . getUserId ( ) ! } ] ) ;
365
365
sess ! . onRTCSessionMemberUpdate ( ) ;
@@ -378,7 +378,7 @@ describe("MatrixRTCSession", () => {
378
378
sess ! . onRTCSessionMemberUpdate ( ) ;
379
379
380
380
// Simulate a join, including the update to the room state
381
- sess ! . joinRoomSession ( [ mockFocus ] , mockFocus , { notifyType : "ring" } ) ;
381
+ sess ! . joinRoomSession ( [ mockFocus ] , mockFocus , { notificationType : "ring" } ) ;
382
382
await Promise . race ( [ sentStateEvent , new Promise ( ( resolve ) => setTimeout ( resolve , 5000 ) ) ] ) ;
383
383
mockRoomState ( mockRoom , [ membershipTemplate , { ...membershipTemplate , user_id : client . getUserId ( ) ! } ] ) ;
384
384
sess ! . onRTCSessionMemberUpdate ( ) ;
@@ -388,7 +388,7 @@ describe("MatrixRTCSession", () => {
388
388
389
389
it ( "doesn't send a notification when someone else starts the call faster than us" , async ( ) => {
390
390
// Simulate a join, including the update to the room state
391
- sess ! . joinRoomSession ( [ mockFocus ] , mockFocus , { notifyType : "ring" } ) ;
391
+ sess ! . joinRoomSession ( [ mockFocus ] , mockFocus , { notificationType : "ring" } ) ;
392
392
await Promise . race ( [ sentStateEvent , new Promise ( ( resolve ) => setTimeout ( resolve , 5000 ) ) ] ) ;
393
393
// But this time we want to simulate a race condition in which we receive a state event
394
394
// from someone else, starting the call before our own state event has been sent
0 commit comments