[RoomKeyRequest] Fix index

This commit is contained in:
Christian Pauly 2020-03-31 16:30:00 +02:00
parent d2807f75e0
commit 5f140a62ad
2 changed files with 3 additions and 2 deletions

View file

@ -24,7 +24,8 @@ class RoomKeyRequest extends ToDeviceEvent {
await requestingDevice.setVerified(true, client);
var message = session.content;
message['forwarding_curve25519_key_chain'] = forwardedKeys;
message['session_key'] = session.inboundGroupSession.export_session(0);
message['session_key'] = session.inboundGroupSession.export_session(session.inboundGroupSession.first_known_index());
await client.sendToDevice(
[requestingDevice],
'm.forwarded_room_key',

View file

@ -333,7 +333,7 @@ packages:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.0+1"
version: "1.9.0"
pointycastle:
dependency: transitive
description: