Accept masterKey in ProvisionMessage
This commit is contained in:
parent
79f7d64fb7
commit
f1e8ffe720
5 changed files with 19 additions and 5 deletions
|
@ -24,6 +24,7 @@ type ProvisionDecryptResult = {
|
|||
userAgent?: string;
|
||||
readReceipts?: boolean;
|
||||
profileKey?: Uint8Array;
|
||||
masterKey?: Uint8Array;
|
||||
};
|
||||
|
||||
class ProvisioningCipherInner {
|
||||
|
@ -87,6 +88,9 @@ class ProvisioningCipherInner {
|
|||
if (provisionMessage.profileKey) {
|
||||
ret.profileKey = provisionMessage.profileKey;
|
||||
}
|
||||
if (provisionMessage.masterKey) {
|
||||
ret.masterKey = provisionMessage.masterKey;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue