pass user settings from above

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-06-15 20:02:17 +01:00
parent 4b34a2b169
commit c53fb08453
2 changed files with 8 additions and 2 deletions

View file

@ -184,6 +184,9 @@ var TimelinePanel = React.createClass({
// hide redacted events as per old behaviour
hideRedactions: syncedSettings.hideRedactions,
// hide membership joins and leaves
hideJoinLeaves: syncedSettings.hideJoinLeaves,
};
},
@ -1122,6 +1125,7 @@ var TimelinePanel = React.createClass({
return (
<MessagePanel ref="messagePanel"
hidden={ this.props.hidden }
hideJoinLeaves={ this.state.hideJoinLeaves }
hideRedactions={ this.state.hideRedactions }
backPaginating={ this.state.backPaginating }
forwardPaginating={ forwardPaginating }