From 1dc3ed914f21664952e74a61a683428e7de1b9a9 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 14 Dec 2022 10:53:23 -0800 Subject: [PATCH] Drop pniCredential completely --- ts/model-types.d.ts | 2 -- ts/services/profiles.ts | 4 ---- 2 files changed, 6 deletions(-) diff --git a/ts/model-types.d.ts b/ts/model-types.d.ts index 4cc675c3b2..956dd381b0 100644 --- a/ts/model-types.d.ts +++ b/ts/model-types.d.ts @@ -311,8 +311,6 @@ export type ConversationAttributesType = { }; profileKeyCredential?: string | null; profileKeyCredentialExpiration?: number | null; - // TODO: DESKTOP-4223 - pniCredential?: void; lastProfile?: ConversationLastProfileType; quotedMessageId?: string | null; sealedSender?: unknown; diff --git a/ts/services/profiles.ts b/ts/services/profiles.ts index 1cdd88b5a0..55058bffae 100644 --- a/ts/services/profiles.ts +++ b/ts/services/profiles.ts @@ -341,10 +341,6 @@ async function doGetProfile(c: ConversationModel): Promise { } } - if (isMe(c.attributes)) { - c.unset('pniCredential'); - } - if (profile.identityKey) { await updateIdentityKey(profile.identityKey, uuid); }