specify timestamps for historical previews
This commit is contained in:
parent
f195d2eb24
commit
f9c914c40e
2 changed files with 3 additions and 2 deletions
|
@ -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)=>{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue