diff --git a/src/components/views/elements/MemberEventListSummary.js b/src/components/views/elements/MemberEventListSummary.js index 26696ccf40..d753fcc007 100644 --- a/src/components/views/elements/MemberEventListSummary.js +++ b/src/components/views/elements/MemberEventListSummary.js @@ -92,12 +92,9 @@ module.exports = React.createClass({ renderSummary: function(joinEvents, leaveEvents) { let joiners = this.renderNameList(joinEvents); let remainingJoiners = joinEvents.length - this.props.summaryLength; - let leavers = this.renderNameList(leaveEvents); let remainingLeavers = leaveEvents.length - this.props.summaryLength; - let joinSummary = null; - if (joiners) { joinSummary = ( @@ -105,9 +102,7 @@ module.exports = React.createClass({ ); } - let leaveSummary = ''; - if (leavers) { leaveSummary = ( @@ -115,7 +110,6 @@ module.exports = React.createClass({ ); } - return ( {joinSummary}{joinSummary && leaveSummary?'; ':''} @@ -124,10 +118,7 @@ module.exports = React.createClass({ ); }, - - renderAvatars: function(events) { - let avatars = events.slice(0, this.props.avatarsMaxLength).map((e) => { let onClickAvatar = () => { dispatcher.dispatch({ @@ -201,7 +192,6 @@ module.exports = React.createClass({ toggleButton = ( {expanded?'collapse':'expand'} ); - let noun = (joinAndLeft === 1 ? 'user' : 'others'); summaryContainer = (