Fix join/part collapsing regressions (#553)

* Fix join/part collapsing regressions

* Simplify loop

* Explain e,e

* Explain return null in _renderSummary

* Kill it properly

* Move . to _renderSummary

* Only use the first and last events to decide whether a net change has occured

* Do not sort events by TS before summarising

* fix loop and comment

* remove data-number-events

* Better explanation comment in _renderSummary

* Less tortuous comment
This commit is contained in:
Luke Barnard 2016-11-16 14:42:30 +00:00 committed by GitHub
parent b718f1542c
commit beecbc7cd7
3 changed files with 53 additions and 24 deletions

View file

@ -69,9 +69,9 @@ module.exports = React.createClass({
render: function() {
var BaseAvatar = sdk.getComponent("avatars.BaseAvatar");
var {member, onClick, ...otherProps} = this.props;
var {member, onClick, viewUserOnClick, ...otherProps} = this.props;
if (this.props.viewUserOnClick) {
if (viewUserOnClick) {
onClick = () => {
dispatcher.dispatch({
action: 'view_user',