support cancelling previews
This commit is contained in:
parent
f9c914c40e
commit
e61c99f7f3
2 changed files with 20 additions and 3 deletions
|
@ -91,7 +91,7 @@ module.exports = React.createClass({
|
|||
var widget;
|
||||
if (this.state.link) {
|
||||
var LinkPreviewWidget = sdk.getComponent('rooms.LinkPreviewWidget');
|
||||
widget = <LinkPreviewWidget link={ this.state.link } ts={ this.props.mxEvent.getTs() } onWidgetLoad={ this.props.onWidgetLoad }/>;
|
||||
widget = <LinkPreviewWidget link={ this.state.link } mxEvent={ this.props.mxEvent } onWidgetLoad={ this.props.onWidgetLoad }/>;
|
||||
}
|
||||
|
||||
switch (content.msgtype) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue