mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-27 19:07:15 +08:00
Adjust account label check (#2369)
This commit is contained in:
parent
06926efbf5
commit
406270d0c6
1 changed files with 3 additions and 9 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue