Display relative time in thread panel event tile (#7068)
* Null-guard for missing root event in thread panel * Add formatRelativeTime date utility * Display relative time format in thread panel event tiles
This commit is contained in:
parent
801eb068d6
commit
2a20d9a7df
4 changed files with 76 additions and 5 deletions
|
@ -1132,7 +1132,11 @@ export default class EventTile extends React.Component<IProps, IState> {
|
|||
|| this.state.actionBarFocused);
|
||||
|
||||
const timestamp = showTimestamp ?
|
||||
<MessageTimestamp showTwelveHour={this.props.isTwelveHour} ts={this.props.mxEvent.getTs()} /> : null;
|
||||
<MessageTimestamp
|
||||
showRelative={this.props.tileShape === TileShape.ThreadPanel}
|
||||
showTwelveHour={this.props.isTwelveHour}
|
||||
ts={this.props.mxEvent.getTs()}
|
||||
/> : null;
|
||||
|
||||
const keyRequestHelpText =
|
||||
<div className="mx_EventTile_keyRequestInfo_tooltip_contents">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue