diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js
index 5a98119dac..d13111bcc6 100644
--- a/src/components/views/messages/TextualBody.js
+++ b/src/components/views/messages/TextualBody.js
@@ -91,7 +91,7 @@ module.exports = React.createClass({
var widget;
if (this.state.link) {
var LinkPreviewWidget = sdk.getComponent('rooms.LinkPreviewWidget');
- widget = ;
+ widget = ;
}
switch (content.msgtype) {
diff --git a/src/components/views/rooms/LinkPreviewWidget.js b/src/components/views/rooms/LinkPreviewWidget.js
index bfefb293c9..80e03522a4 100644
--- a/src/components/views/rooms/LinkPreviewWidget.js
+++ b/src/components/views/rooms/LinkPreviewWidget.js
@@ -31,6 +31,7 @@ module.exports = React.createClass({
propTypes: {
link: React.PropTypes.string.isRequired,
+ ts: React.PropTypes.number,
onWidgetLoad: React.PropTypes.func,
},
@@ -41,7 +42,7 @@ module.exports = React.createClass({
},
componentWillMount: function() {
- MatrixClientPeg.get().getUrlPreview(this.props.link).then((res)=>{
+ MatrixClientPeg.get().getUrlPreview(this.props.link, this.props.ts).then((res)=>{
this.setState({ preview: res });
this.props.onWidgetLoad();
}, (error)=>{