From 9b7a85ec4ead9224bde5dac0169b54c4f91e2397 Mon Sep 17 00:00:00 2001 From: Alexey Zinoviev Date: Fri, 28 Mar 2025 00:33:22 +0400 Subject: [PATCH] uberf-9603: fix account rename (#8371) Signed-off-by: Alexey Zinoviev --- plugins/contact-resources/src/utils.ts | 8 -------- .../setting-resources/src/components/Profile.svelte | 10 +++++----- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/plugins/contact-resources/src/utils.ts b/plugins/contact-resources/src/utils.ts index 988118d02d..d8858bdb8c 100644 --- a/plugins/contact-resources/src/utils.ts +++ b/plugins/contact-resources/src/utils.ts @@ -334,14 +334,6 @@ export const myEmployeeStore = derived( export const personByIdStore = writable>>(new Map()) export const socialIdsStore = writable>>([]) -// NOTE -// In-workspace social ids of the current employee -// Should not be used except some rare cases -// Use getCurrentAccount().socialIds instead -export const mySocialIdsStore = derived([currentEmployeeRefStore, socialIdsStore], ([myEmployeeRef, socialIds]) => { - return socialIds.filter((si) => si.attachedTo === myEmployeeRef) -}) - /** * [Ref => SocialIdentity[]] mapping */ diff --git a/plugins/setting-resources/src/components/Profile.svelte b/plugins/setting-resources/src/components/Profile.svelte index 9764c05e48..300ec54a17 100644 --- a/plugins/setting-resources/src/components/Profile.svelte +++ b/plugins/setting-resources/src/components/Profile.svelte @@ -14,7 +14,7 @@ -->