mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
use method that also takes server aggregations into account for tooltip date
This commit is contained in:
parent
cd803617b8
commit
58d7ed02b7
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user