diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index 25316844df..8f95c9cf5c 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -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 = ; } return (