Skip to content

Commit 3a606d5

Browse files
committed
add reference comment
1 parent 7adc496 commit 3a606d5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

extension/chrome/elements/compose-modules/compose-input-module.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,17 @@ export class ComposeInputModule extends ViewModule<ComposeView> {
301301
const result: ParsedRecipients = { to: [], cc: [], bcc: [] };
302302
for (const recipient of recipients) {
303303
/* eslint-disable @typescript-eslint/no-non-null-assertion */
304+
// Setting recipient name to empty string as a hotfix - https://github.com/FlowCrypt/enterprise-server/issues/6264
305+
const defaultName = '';
304306
switch (recipient.sendingType) {
305307
case 'to':
306-
result.to!.push({ email: recipient.email, name: recipient.name });
308+
result.to!.push({ email: recipient.email, name: defaultName });
307309
break;
308310
case 'cc':
309-
result.cc!.push({ email: recipient.email, name: recipient.name });
311+
result.cc!.push({ email: recipient.email, name: defaultName });
310312
break;
311313
case 'bcc':
312-
result.bcc!.push({ email: recipient.email, name: recipient.name });
314+
result.bcc!.push({ email: recipient.email, name: defaultName });
313315
break;
314316
}
315317
/* eslint-enable @typescript-eslint/no-non-null-assertion */

0 commit comments

Comments
 (0)