Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3193 from matrix-org/bwindels/replace-server-date
Browse files Browse the repository at this point in the history
Take server-side aggregation into account for timestamp on (edited) tooltip
  • Loading branch information
bwindels authored Jul 9, 2019
2 parents 349afb1 + 58d7ed0 commit 7ab665b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/views/messages/TextualBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 7ab665b

Please sign in to comment.