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/9747pull/21833/head
							parent
							
								
									6edf760943
								
							
						
					
					
						commit
						8f6884ec15
					
				| 
						 | 
				
			
			@ -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 (
 | 
			
		||||
            <span className="mx_MessageTimestamp" title={formatFullDate(date, this.props.showTwelveHour)}>
 | 
			
		||||
            <span
 | 
			
		||||
                className="mx_MessageTimestamp"
 | 
			
		||||
                title={formatFullDate(date, this.props.showTwelveHour)}
 | 
			
		||||
                aria-hidden={this.props.ariaHidden}
 | 
			
		||||
            >
 | 
			
		||||
                { formatTime(date, this.props.showTwelveHour) }
 | 
			
		||||
            </span>
 | 
			
		||||
        );
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -640,8 +640,12 @@ module.exports = withMatrixClient(React.createClass({
 | 
			
		|||
            onFocusChange={this.onActionBarFocusChange}
 | 
			
		||||
        /> : undefined;
 | 
			
		||||
 | 
			
		||||
        const timestamp = this.props.mxEvent.getTs() ?
 | 
			
		||||
            <MessageTimestamp showTwelveHour={this.props.isTwelveHour} ts={this.props.mxEvent.getTs()} /> : null;
 | 
			
		||||
        const timestamp = this.props.mxEvent.getTs()
 | 
			
		||||
            ? <MessageTimestamp
 | 
			
		||||
                showTwelveHour={this.props.isTwelveHour}
 | 
			
		||||
                ts={this.props.mxEvent.getTs()}
 | 
			
		||||
                ariaHidden={muteScreenReader}
 | 
			
		||||
            /> : null;
 | 
			
		||||
 | 
			
		||||
        const keyRequestHelpText =
 | 
			
		||||
            <div className="mx_EventTile_keyRequestInfo_tooltip_contents">
 | 
			
		||||
| 
						 | 
				
			
			@ -785,7 +789,7 @@ module.exports = withMatrixClient(React.createClass({
 | 
			
		|||
                        </div>
 | 
			
		||||
                        { sender }
 | 
			
		||||
                        <div className="mx_EventTile_line">
 | 
			
		||||
                            <a href={permalink} onClick={this.onPermalinkClicked}>
 | 
			
		||||
                            <a href={permalink} onClick={this.onPermalinkClicked} aria-hidden={muteScreenReader}>
 | 
			
		||||
                                { timestamp }
 | 
			
		||||
                            </a>
 | 
			
		||||
                            { this._renderE2EPadlock() }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue