Handle potential null values for signing keys and encryption channel secrets in ExportedSession
This commit is contained in:
parent
ef463a132d
commit
0883f55328
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@
|
||||||
$this->clientTransportEncryptionKey = $data['client_transport_encryption_key'];
|
$this->clientTransportEncryptionKey = $data['client_transport_encryption_key'];
|
||||||
$this->serverTransportEncryptionKey = $data['server_transport_encryption_key'];
|
$this->serverTransportEncryptionKey = $data['server_transport_encryption_key'];
|
||||||
$this->defaultSigningKey = $data['default_signing_key'] ?? null;
|
$this->defaultSigningKey = $data['default_signing_key'] ?? null;
|
||||||
$this->signingKeys = array_map(fn($key) => SignatureKeyPair::fromArray($key), $data['signing_keys']);
|
$this->signingKeys = array_map(fn($key) => SignatureKeyPair::fromArray($key), $data['signing_keys'] ?? []);
|
||||||
$this->encryptionChannelSecrets = array_map(fn($key) => EncryptionChannelSecret::fromArray($key), $data['encryption_channel_secrets']);
|
$this->encryptionChannelSecrets = array_map(fn($key) => EncryptionChannelSecret::fromArray($key), $data['encryption_channel_secrets'] ?? []);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue