@@ -170,6 +170,7 @@ const renderEmailInfoExpand = props => (
170170 onReplyAll = { props . onReplyAll }
171171 onForward = { props . onForward }
172172 onMarkAsSpam = { props . onMarkAsSpam }
173+ onMarkUnread = { props . onMarkUnread }
173174 onDelete = { props . onDelete }
174175 onDeletePermanently = { props . handleClickPermanentlyDeleteEmail }
175176 onToggleMenu = { props . onTogglePopOverEmailActions }
@@ -184,10 +185,14 @@ const renderEmailInfoExpand = props => (
184185) ;
185186
186187const showContacts = contacts => {
187- return contacts . reduce (
188- ( result , contact ) => `${ result } ${ contact . name || contact . email } ` ,
189- ''
190- ) ;
188+ return contacts . reduce ( ( result , contact , index ) => {
189+ if ( contacts . length > 1 ) {
190+ const name = contact . name || contact . email ;
191+ const firstname = `${ index !== 0 ? ', ' : '' } ${ name . split ( ' ' ) [ 0 ] } ` ;
192+ return `${ result } ${ firstname } ` ;
193+ }
194+ return `${ result } ${ contact . name || contact . email } ` ;
195+ } , '' ) ;
191196} ;
192197
193198const renderEmailStatus = status => {
@@ -269,6 +274,7 @@ renderEmailInfoExpand.propTypes = {
269274 onDeletePermanently : PropTypes . func ,
270275 onForward : PropTypes . func ,
271276 onMarkAsSpam : PropTypes . func ,
277+ onMarkUnread : PropTypes . func ,
272278 onOpenEmailSource : PropTypes . func ,
273279 onPrintEmail : PropTypes . func ,
274280 onReplyEmail : PropTypes . func ,
0 commit comments