diff --git a/src/components/views/elements/MemberEventListSummary.js b/src/components/views/elements/MemberEventListSummary.js index 4a4e8bfd1e..b460a3513e 100644 --- a/src/components/views/elements/MemberEventListSummary.js +++ b/src/components/views/elements/MemberEventListSummary.js @@ -162,10 +162,15 @@ module.exports = React.createClass({ return e.getSender() === userId; }); + if (userEvents.length === 1) { + filteredEvents.push(userEvents[0]); + return; + } + let firstEvent = userEvents[0]; let lastEvent = userEvents[userEvents.length - 1]; - if (firstEvent.getContent().membership !== lastEvent.getContent().membership) { + if (firstEvent.getContent().membership === lastEvent.getContent().membership) { filteredEvents.push(lastEvent); } }