fix(crypto): OutgoingRequest::ToDeviceRequest was not correctly mapped.

This commit is contained in:
Ivan Enderlin
2022-05-17 10:59:11 +02:00
parent 30e9189f7b
commit dc5b15e799

View File

@@ -187,7 +187,7 @@ impl TryFrom<OutgoingRequest> for JsValue {
"messages": request.messages,
});
JsValue::from(KeysClaimRequest {
JsValue::from(ToDeviceRequest {
request_id,
body: serde_json::to_string(&body)?.into(),
})