You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Make delegateCryptoCallbacks parameter optional on EncryptionSetupBuilder
This commit is contained in:
@@ -59,7 +59,7 @@ export class EncryptionSetupBuilder {
|
|||||||
* @param {Object.<String, MatrixEvent>} accountData pre-existing account data, will only be read, not written.
|
* @param {Object.<String, MatrixEvent>} accountData pre-existing account data, will only be read, not written.
|
||||||
* @param {CryptoCallbacks} delegateCryptoCallbacks crypto callbacks to delegate to if the key isn't in cache yet
|
* @param {CryptoCallbacks} delegateCryptoCallbacks crypto callbacks to delegate to if the key isn't in cache yet
|
||||||
*/
|
*/
|
||||||
constructor(accountData: Record<string, MatrixEvent>, delegateCryptoCallbacks: ICryptoCallbacks) {
|
constructor(accountData: Record<string, MatrixEvent>, delegateCryptoCallbacks?: ICryptoCallbacks) {
|
||||||
this.accountDataClientAdapter = new AccountDataClientAdapter(accountData);
|
this.accountDataClientAdapter = new AccountDataClientAdapter(accountData);
|
||||||
this.crossSigningCallbacks = new CrossSigningCallbacks();
|
this.crossSigningCallbacks = new CrossSigningCallbacks();
|
||||||
this.ssssCryptoCallbacks = new SSSSCryptoCallbacks(delegateCryptoCallbacks);
|
this.ssssCryptoCallbacks = new SSSSCryptoCallbacks(delegateCryptoCallbacks);
|
||||||
|
|||||||
Reference in New Issue
Block a user