Merge branch 'client-fix-request-cancellation' into 'master'
[Client] Send request cancellation unencrypted See merge request famedly/famedlysdk!244
This commit is contained in:
commit
29398360b3
|
@ -1340,14 +1340,16 @@ class Client {
|
||||||
);
|
);
|
||||||
if (toDeviceEvent.type == "m.forwarded_room_key") {
|
if (toDeviceEvent.type == "m.forwarded_room_key") {
|
||||||
sendToDevice(
|
sendToDevice(
|
||||||
[],
|
[],
|
||||||
"m.room_key_request",
|
"m.room_key_request",
|
||||||
{
|
{
|
||||||
"action": "request_cancellation",
|
"action": "request_cancellation",
|
||||||
"request_id": base64.encode(
|
"request_id": base64
|
||||||
utf8.encode(toDeviceEvent.content["room_id"])),
|
.encode(utf8.encode(toDeviceEvent.content["room_id"])),
|
||||||
"requesting_device_id": room.client.deviceID,
|
"requesting_device_id": room.client.deviceID,
|
||||||
});
|
},
|
||||||
|
encrypted: false,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue