Fix empty lightbox when there is no avatarUrl
Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
parent
0cce912cf6
commit
53947bee35
1 changed files with 5 additions and 0 deletions
|
@ -137,6 +137,11 @@ module.exports = React.createClass({
|
|||
const avatarUrl = this.props.room.getAvatarUrl(
|
||||
MatrixClientPeg.get().getHomeserverUrl(),
|
||||
null, null, null, false);
|
||||
|
||||
if (!avatarUrl) {
|
||||
return;
|
||||
}
|
||||
|
||||
const ImageView = sdk.getComponent("elements.ImageView");
|
||||
const params = {
|
||||
src: avatarUrl,
|
||||
|
|
Loading…
Reference in a new issue