File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
extension/chrome/elements/compose-modules Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -301,17 +301,15 @@ 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 = '' ;
306304 switch ( recipient . sendingType ) {
307305 case 'to' :
308- result . to ! . push ( { email : recipient . email , name : defaultName } ) ;
306+ result . to ! . push ( { email : recipient . email , name : recipient . name } ) ;
309307 break ;
310308 case 'cc' :
311- result . cc ! . push ( { email : recipient . email , name : defaultName } ) ;
309+ result . cc ! . push ( { email : recipient . email , name : recipient . name } ) ;
312310 break ;
313311 case 'bcc' :
314- result . bcc ! . push ( { email : recipient . email , name : defaultName } ) ;
312+ result . bcc ! . push ( { email : recipient . email , name : recipient . name } ) ;
315313 break ;
316314 }
317315 /* eslint-enable @typescript-eslint/no-non-null-assertion */
You can’t perform that action at this time.
0 commit comments