From 03194e66b3b7d58847af7007253ccdac077cbd6d Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 27 May 2017 00:14:16 +0100 Subject: [PATCH] actually wire up alwaysShowTimestamps --- src/components/structures/MessagePanel.js | 10 +++++++++- src/components/structures/TimelinePanel.js | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) 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 ( -