diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index d98a464aef..6b80223e42 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -87,6 +87,9 @@ module.exports = React.createClass({ // show twelve hour timestamps isTwelveHour: React.PropTypes.bool, + + // show timestamps always + alwaysShowTimestamps: React.PropTypes.bool, }, componentWillMount: function() { @@ -618,8 +621,13 @@ module.exports = React.createClass({ var style = this.props.hidden ? { display: 'none' } : {}; style.opacity = this.props.opacity; + var className = this.props.className + " mx_fadable"; + if (this.props.alwaysShowTimestamps) { + className += " mx_MessagePanel_alwaysShowTimestamps"; + } + return ( -