Merge pull request #3193 from matrix-org/bwindels/replace-server-date
Take server-side aggregation into account for timestamp on (edited) tooltippull/21833/head
commit
7ab665bf31
|
@ -364,11 +364,11 @@ module.exports = React.createClass({
|
||||||
let editedTooltip;
|
let editedTooltip;
|
||||||
if (this.state.editedMarkerHovered) {
|
if (this.state.editedMarkerHovered) {
|
||||||
const Tooltip = sdk.getComponent('elements.Tooltip');
|
const Tooltip = sdk.getComponent('elements.Tooltip');
|
||||||
const editEvent = this.props.mxEvent.replacingEvent();
|
const date = this.props.mxEvent.replacingEventDate();
|
||||||
const date = editEvent && formatDate(editEvent.getDate());
|
const dateString = date && formatDate(date);
|
||||||
editedTooltip = <Tooltip
|
editedTooltip = <Tooltip
|
||||||
tooltipClassName="mx_Tooltip_timeline"
|
tooltipClassName="mx_Tooltip_timeline"
|
||||||
label={_t("Edited at %(date)s. Click to view edits.", {date})}
|
label={_t("Edited at %(date)s. Click to view edits.", {date: dateString})}
|
||||||
/>;
|
/>;
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in New Issue