mirror of https://github.com/vector-im/riot-web
Merge pull request #870 from matrix-org/luke/fix-null-url-previews
Don't show null URL previewspull/21833/head
commit
598f5e20c6
|
@ -100,7 +100,9 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
var p = this.state.preview;
|
var p = this.state.preview;
|
||||||
if (!p) return <div/>;
|
if (!p || Object.keys(p).length === 0) {
|
||||||
|
return <div/>;
|
||||||
|
}
|
||||||
|
|
||||||
// FIXME: do we want to factor out all image displaying between this and MImageBody - especially for lightboxing?
|
// FIXME: do we want to factor out all image displaying between this and MImageBody - especially for lightboxing?
|
||||||
var image = p["og:image"];
|
var image = p["og:image"];
|
||||||
|
|
Loading…
Reference in New Issue