@@ -177,7 +177,7 @@ describe('Key Verification', () => {
177
177
const toDeviceEvents = [ {
178
178
sender : userId1 . toString ( ) ,
179
179
type : outgoingVerificationRequest . event_type ,
180
- content : JSON . parse ( outgoingVerificationRequest . extra ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
180
+ content : JSON . parse ( outgoingVerificationRequest . body ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
181
181
} ] ;
182
182
183
183
// Let's send the verification request to `m2`.
@@ -228,7 +228,7 @@ describe('Key Verification', () => {
228
228
const toDeviceEvents = [ {
229
229
sender : userId2 . toString ( ) ,
230
230
type : outgoingVerificationRequest . event_type ,
231
- content : JSON . parse ( outgoingVerificationRequest . extra ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
231
+ content : JSON . parse ( outgoingVerificationRequest . body ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
232
232
} ] ;
233
233
234
234
// Let's send the verification ready to `m1`.
@@ -281,7 +281,7 @@ describe('Key Verification', () => {
281
281
const toDeviceEvents = [ {
282
282
sender : userId2 . toString ( ) ,
283
283
type : outgoingVerificationRequest . event_type ,
284
- content : JSON . parse ( outgoingVerificationRequest . extra ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
284
+ content : JSON . parse ( outgoingVerificationRequest . body ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
285
285
} ] ;
286
286
287
287
// Let's send the SAS start to `m1`.
@@ -326,7 +326,7 @@ describe('Key Verification', () => {
326
326
const toDeviceEvents = [ {
327
327
sender : userId1 . toString ( ) ,
328
328
type : outgoingVerificationRequest . event_type ,
329
- content : JSON . parse ( outgoingVerificationRequest . extra ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
329
+ content : JSON . parse ( outgoingVerificationRequest . body ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
330
330
} ] ;
331
331
332
332
// Let's send the SAS accept to `m2`.
@@ -349,7 +349,7 @@ describe('Key Verification', () => {
349
349
const toDeviceEvents = [ {
350
350
sender : userId2 . toString ( ) ,
351
351
type : toDeviceRequest . event_type ,
352
- content : JSON . parse ( toDeviceRequest . extra ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
352
+ content : JSON . parse ( toDeviceRequest . body ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
353
353
} ] ;
354
354
355
355
// Let's send te SAS key to `m1`.
@@ -369,7 +369,7 @@ describe('Key Verification', () => {
369
369
const toDeviceEvents = [ {
370
370
sender : userId1 . toString ( ) ,
371
371
type : toDeviceRequest . event_type ,
372
- content : JSON . parse ( toDeviceRequest . extra ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
372
+ content : JSON . parse ( toDeviceRequest . body ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
373
373
} ] ;
374
374
375
375
// Let's send te SAS key to `m2`.
@@ -438,7 +438,7 @@ describe('Key Verification', () => {
438
438
const toDeviceEvents = [ {
439
439
sender : userId1 . toString ( ) ,
440
440
type : outgoingVerificationRequest . event_type ,
441
- content : JSON . parse ( outgoingVerificationRequest . extra ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
441
+ content : JSON . parse ( outgoingVerificationRequest . body ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
442
442
} ] ;
443
443
444
444
// Let's send te SAS confirmation to `m2`.
@@ -462,7 +462,7 @@ describe('Key Verification', () => {
462
462
const toDeviceEvents = [ {
463
463
sender : userId2 . toString ( ) ,
464
464
type : outgoingVerificationRequest . event_type ,
465
- content : JSON . parse ( outgoingVerificationRequest . extra ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
465
+ content : JSON . parse ( outgoingVerificationRequest . body ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
466
466
} ] ;
467
467
468
468
// Let's send te SAS confirmation to `m1`.
@@ -479,7 +479,7 @@ describe('Key Verification', () => {
479
479
const toDeviceEvents = [ {
480
480
sender : userId2 . toString ( ) ,
481
481
type : outgoingVerificationRequest . event_type ,
482
- content : JSON . parse ( outgoingVerificationRequest . extra ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
482
+ content : JSON . parse ( outgoingVerificationRequest . body ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
483
483
} ] ;
484
484
485
485
// Let's send te SAS done to `m1`.
@@ -499,7 +499,7 @@ describe('Key Verification', () => {
499
499
const toDeviceEvents = [ {
500
500
sender : userId1 . toString ( ) ,
501
501
type : toDeviceRequest . event_type ,
502
- content : JSON . parse ( toDeviceRequest . extra ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
502
+ content : JSON . parse ( toDeviceRequest . body ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
503
503
} ] ;
504
504
505
505
// Let's send te SAS key to `m2`.
@@ -585,7 +585,7 @@ describe('Key Verification', () => {
585
585
const toDeviceEvents = [ {
586
586
sender : userId1 . toString ( ) ,
587
587
type : outgoingVerificationRequest . event_type ,
588
- content : JSON . parse ( outgoingVerificationRequest . extra ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
588
+ content : JSON . parse ( outgoingVerificationRequest . body ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
589
589
} ] ;
590
590
591
591
// Let's send the verification request to `m2`.
@@ -639,7 +639,7 @@ describe('Key Verification', () => {
639
639
const toDeviceEvents = [ {
640
640
sender : userId2 . toString ( ) ,
641
641
type : outgoingVerificationRequest . event_type ,
642
- content : JSON . parse ( outgoingVerificationRequest . extra ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
642
+ content : JSON . parse ( outgoingVerificationRequest . body ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
643
643
} ] ;
644
644
645
645
// Let's send the verification ready to `m1`.
@@ -796,7 +796,7 @@ describe('Key Verification', () => {
796
796
const toDeviceEvents = [ {
797
797
sender : userId1 . toString ( ) ,
798
798
type : outgoingVerificationRequest . event_type ,
799
- content : JSON . parse ( outgoingVerificationRequest . extra ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
799
+ content : JSON . parse ( outgoingVerificationRequest . body ) . messages [ userId2 . toString ( ) ] [ deviceId2 . toString ( ) ] ,
800
800
} ] ;
801
801
802
802
// Let's send the verification request to `m2`.
@@ -816,7 +816,7 @@ describe('Key Verification', () => {
816
816
const toDeviceEvents = [ {
817
817
sender : userId2 . toString ( ) ,
818
818
type : outgoingVerificationRequest . event_type ,
819
- content : JSON . parse ( outgoingVerificationRequest . extra ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
819
+ content : JSON . parse ( outgoingVerificationRequest . body ) . messages [ userId1 . toString ( ) ] [ deviceId1 . toString ( ) ] ,
820
820
} ] ;
821
821
822
822
// Let's send the verification request to `m2`.
0 commit comments