From 406270d0c61df43ff900af582c7566bf4590e743 Mon Sep 17 00:00:00 2001 From: Janosch Maier Date: Tue, 1 Mar 2022 19:14:05 +0100 Subject: [PATCH] Adjust account label check (#2369) --- app/src/flux/models/contact.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/app/src/flux/models/contact.ts b/app/src/flux/models/contact.ts index 32737e622..4e7ebf08c 100644 --- a/app/src/flux/models/contact.ts +++ b/app/src/flux/models/contact.ts @@ -505,16 +505,10 @@ export class Contact extends Model { return null; } - if (includeAccountLabel) { - FocusedPerspectiveStore = - FocusedPerspectiveStore || require('../stores/focused-perspective-store').default; - if ( - account && - (FocusedPerspectiveStore.current().accountIds.length > 1 || forceAccountLabel) - ) { - return `You (${account.label})`; - } + if (includeAccountLabel && account && (AccountStore.accounts().length > 1 || forceAccountLabel)) { + return `${localized('You')} (${account.label})`; } + return localized('You'); }