File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -243,8 +243,8 @@ pub struct RoomMessageRequest {
243
243
#[ wasm_bindgen( readonly) ]
244
244
pub event_type : JsString ,
245
245
246
- /// A JSON-encoded string containing the message's content .
247
- #[ wasm_bindgen( readonly) ]
246
+ /// A JSON-encoded string containing the message's body .
247
+ #[ wasm_bindgen( readonly, js_name = "body" ) ]
248
248
pub content : JsString ,
249
249
}
250
250
Original file line number Diff line number Diff line change @@ -802,10 +802,10 @@ describe(OlmMachine.name, () => {
802
802
expect ( outgoingVerificationRequest . room_id ) . toStrictEqual ( room . toString ( ) ) ;
803
803
expect ( outgoingVerificationRequest . txn_id ) . toBeDefined ( ) ;
804
804
expect ( outgoingVerificationRequest . event_type ) . toStrictEqual ( 'm.key.verification.start' ) ;
805
- expect ( outgoingVerificationRequest . content ) . toBeDefined ( ) ;
805
+ expect ( outgoingVerificationRequest . body ) . toBeDefined ( ) ;
806
806
807
- const content = JSON . parse ( outgoingVerificationRequest . content ) ;
808
- expect ( content ) . toMatchObject ( {
807
+ const body = JSON . parse ( outgoingVerificationRequest . body ) ;
808
+ expect ( body ) . toMatchObject ( {
809
809
from_device : expect . any ( String ) ,
810
810
method : 'm.sas.v1' ,
811
811
key_agreement_protocols : [ expect . any ( String ) ] ,
You can’t perform that action at this time.
0 commit comments