@@ -49,7 +49,7 @@ const mockFocus = { type: "mock" };
4949
5050const textEncoder = new TextEncoder ( ) ;
5151
52- const callSession = { id : "" , application : "m.call" } ;
52+ const callSession = { id : "ROOM " , application : "m.call" } ;
5353
5454describe ( "MatrixRTCSession" , ( ) => {
5555 let client : MatrixClient ;
@@ -134,12 +134,12 @@ describe("MatrixRTCSession", () => {
134134 ) ;
135135 await flushPromises ( ) ;
136136 expect ( sess ?. memberships . length ) . toEqual ( 1 ) ;
137- expect ( sess ?. memberships [ 0 ] . slotDescription . id ) . toEqual ( "" ) ;
137+ expect ( sess ?. memberships [ 0 ] . slotDescription . id ) . toEqual ( "ROOM " ) ;
138138 expect ( sess ?. memberships [ 0 ] . scope ) . toEqual ( "m.room" ) ;
139139 expect ( sess ?. memberships [ 0 ] . application ) . toEqual ( "m.call" ) ;
140140 expect ( sess ?. memberships [ 0 ] . deviceId ) . toEqual ( "AAAAAAA" ) ;
141141 expect ( sess ?. memberships [ 0 ] . isExpired ( ) ) . toEqual ( false ) ;
142- expect ( sess ?. slotDescription . id ) . toEqual ( "" ) ;
142+ expect ( sess ?. slotDescription . id ) . toEqual ( "ROOM " ) ;
143143 } ) ;
144144
145145 it ( "ignores memberships where application is not m.call" , ( ) => {
@@ -381,12 +381,12 @@ describe("MatrixRTCSession", () => {
381381 } ) ;
382382 await flushPromises ( ) ;
383383 expect ( sess ?. memberships . length ) . toEqual ( 1 ) ;
384- expect ( sess ?. memberships [ 0 ] . slotDescription . id ) . toEqual ( "" ) ;
384+ expect ( sess ?. memberships [ 0 ] . slotDescription . id ) . toEqual ( "ROOM " ) ;
385385 expect ( sess ?. memberships [ 0 ] . scope ) . toEqual ( "m.room" ) ;
386386 expect ( sess ?. memberships [ 0 ] . application ) . toEqual ( "m.call" ) ;
387387 expect ( sess ?. memberships [ 0 ] . deviceId ) . toEqual ( "AAAAAAA" ) ;
388388 expect ( sess ?. memberships [ 0 ] . isExpired ( ) ) . toEqual ( false ) ;
389- expect ( sess ?. slotDescription . id ) . toEqual ( "" ) ;
389+ expect ( sess ?. slotDescription . id ) . toEqual ( "ROOM " ) ;
390390 } ) ;
391391 it ( "combines sticky and membership events when both exist" , async ( ) => {
392392 // Create a room with identical member state and sticky state for the same user.
@@ -415,7 +415,7 @@ describe("MatrixRTCSession", () => {
415415 const memberships = sess . memberships ;
416416 expect ( memberships . length ) . toEqual ( 2 ) ;
417417 expect ( memberships [ 0 ] . sender ) . toEqual ( stickyUserId ) ;
418- expect ( memberships [ 0 ] . slotDescription . id ) . toEqual ( "" ) ;
418+ expect ( memberships [ 0 ] . slotDescription . id ) . toEqual ( "ROOM " ) ;
419419 expect ( memberships [ 0 ] . scope ) . toEqual ( "m.room" ) ;
420420 expect ( memberships [ 0 ] . application ) . toEqual ( "m.call" ) ;
421421 expect ( memberships [ 0 ] . deviceId ) . toEqual ( "AAAAAAA" ) ;
@@ -424,7 +424,7 @@ describe("MatrixRTCSession", () => {
424424 // Then state
425425 expect ( memberships [ 1 ] . sender ) . toEqual ( membershipTemplate . user_id ) ;
426426
427- expect ( sess ?. slotDescription . id ) . toEqual ( "" ) ;
427+ expect ( sess ?. slotDescription . id ) . toEqual ( "ROOM " ) ;
428428 } ) ;
429429 it ( "handles an incoming sticky event to an existing session" , async ( ) => {
430430 const mockRoom = makeMockRoom ( [ membershipTemplate ] ) ;
0 commit comments