Merge pull request #3193 from matrix-org/bwindels/replace-server-date

Take server-side aggregation into account for timestamp on (edited) tooltip
pull/21833/head
Bruno Windels 2019-07-09 15:03:21 +00:00 committed by GitHub
commit 7ab665bf31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -364,11 +364,11 @@ module.exports = React.createClass({
let editedTooltip;
if (this.state.editedMarkerHovered) {
const Tooltip = sdk.getComponent('elements.Tooltip');
const editEvent = this.props.mxEvent.replacingEvent();
const date = editEvent && formatDate(editEvent.getDate());
const date = this.props.mxEvent.replacingEventDate();
const dateString = date && formatDate(date);
editedTooltip = <Tooltip
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 (