Merge branch 'ChristianPauly-master-patch-64485' into 'master'
Ignore key requests from unknown devices See merge request famedly/famedlysdk!325
This commit is contained in:
commit
0854cb81af
|
@ -1574,7 +1574,7 @@ class Client {
|
|||
deviceKeys.verified &&
|
||||
!deviceKeys.blocked) {
|
||||
await roomKeyRequest.forwardKey();
|
||||
} else {
|
||||
} else if (roomKeyRequest.requestingDevice != null) {
|
||||
onRoomKeyRequest.add(roomKeyRequest);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ class RoomKeyRequest extends ToDeviceEvent {
|
|||
for (final key in session.forwardingCurve25519KeyChain) {
|
||||
forwardedKeys.add(key);
|
||||
}
|
||||
await requestingDevice?.setVerified(true, client);
|
||||
await requestingDevice.setVerified(true, client);
|
||||
var message = session.content;
|
||||
message['forwarding_curve25519_key_chain'] = forwardedKeys;
|
||||
|
||||
|
|
Loading…
Reference in a new issue