Fix storage service processing of verified status

This commit is contained in:
Fedor Indutny 2022-04-05 09:31:18 -07:00 committed by GitHub
parent 6500804231
commit 7eaba737c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -1724,9 +1724,6 @@ export class SignalProtocolStore extends EventsMixin {
if (!validateVerifiedStatus(verifiedStatus)) {
throw new Error('setVerified: Invalid verified status');
}
if (arguments.length > 2 && !(publicKey instanceof Uint8Array)) {
throw new Error('setVerified: Invalid public key');
}
const identityRecord = await this.getOrMigrateIdentityRecord(uuid);