From 69ee4ffd0820da409dc067fdc33c7a38ce27f38c Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 24 Mar 2020 09:13:39 +0100 Subject: [PATCH] [Client] Send request cancellation unencrypted --- lib/src/client.dart | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index f43c162..d4bc86e 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -1340,14 +1340,16 @@ class Client { ); if (toDeviceEvent.type == "m.forwarded_room_key") { sendToDevice( - [], - "m.room_key_request", - { - "action": "request_cancellation", - "request_id": base64.encode( - utf8.encode(toDeviceEvent.content["room_id"])), - "requesting_device_id": room.client.deviceID, - }); + [], + "m.room_key_request", + { + "action": "request_cancellation", + "request_id": base64 + .encode(utf8.encode(toDeviceEvent.content["room_id"])), + "requesting_device_id": room.client.deviceID, + }, + encrypted: false, + ); } } }