Merge branch 'roomkeyrequest-fix-index' into 'master'

[RoomKeyRequest] Fix index

See merge request famedly/famedlysdk!253
This commit is contained in:
Christian Pauly 2020-03-31 14:34:29 +00:00
commit c04c287a28
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: