[RoomKeyRequest] Fix forwardKey

This commit is contained in:
Christian Pauly 2020-03-31 17:18:37 +02:00
parent c04c287a28
commit 0dcc818365

View file

@ -21,7 +21,7 @@ class RoomKeyRequest extends ToDeviceEvent {
for (final key in session.forwardingCurve25519KeyChain) { for (final key in session.forwardingCurve25519KeyChain) {
forwardedKeys.add(key); forwardedKeys.add(key);
} }
await requestingDevice.setVerified(true, client); await requestingDevice?.setVerified(true, client);
var message = session.content; var message = session.content;
message['forwarding_curve25519_key_chain'] = forwardedKeys; message['forwarding_curve25519_key_chain'] = forwardedKeys;