From 7eaba737c6bacfd779b1dfd91aacc2b017b2a3b5 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Tue, 5 Apr 2022 09:31:18 -0700 Subject: [PATCH] Fix storage service processing of verified status --- ts/SignalProtocolStore.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/ts/SignalProtocolStore.ts b/ts/SignalProtocolStore.ts index 4e72adf77c..5ba1698b56 100644 --- a/ts/SignalProtocolStore.ts +++ b/ts/SignalProtocolStore.ts @@ -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);