From 8f6884ec15d6551bcd1318a508504812776b4624 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 21 May 2019 18:57:16 -0600 Subject: [PATCH] Mute timestamps for irrelevant updates Other fix for https://github.com/vector-im/riot-web/issues/5697 See https://github.com/vector-im/riot-web/issues/9747 --- src/components/views/messages/MessageTimestamp.js | 7 ++++++- src/components/views/rooms/EventTile.js | 10 +++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/components/views/messages/MessageTimestamp.js b/src/components/views/messages/MessageTimestamp.js index 0bbb3f631e..5bfdc1bc26 100644 --- a/src/components/views/messages/MessageTimestamp.js +++ b/src/components/views/messages/MessageTimestamp.js @@ -23,12 +23,17 @@ export default class MessageTimestamp extends React.Component { static propTypes = { ts: PropTypes.number.isRequired, showTwelveHour: PropTypes.bool, + ariaHidden: PropTypes.bool, }; render() { const date = new Date(this.props.ts); return ( - + { formatTime(date, this.props.showTwelveHour) } ); diff --git a/src/components/views/rooms/EventTile.js b/src/components/views/rooms/EventTile.js index 8d01042ed1..bbc8faa3f5 100644 --- a/src/components/views/rooms/EventTile.js +++ b/src/components/views/rooms/EventTile.js @@ -640,8 +640,12 @@ module.exports = withMatrixClient(React.createClass({ onFocusChange={this.onActionBarFocusChange} /> : undefined; - const timestamp = this.props.mxEvent.getTs() ? - : null; + const timestamp = this.props.mxEvent.getTs() + ? : null; const keyRequestHelpText =
@@ -785,7 +789,7 @@ module.exports = withMatrixClient(React.createClass({
{ sender }
- + { timestamp } { this._renderE2EPadlock() }