Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix empty lightbox when there is no avatarUrl
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Raimist <[email protected]>
  • Loading branch information
aaronraimist committed Nov 28, 2018
1 parent e3f2e69 commit 8d10e02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/views/avatars/RoomAvatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8d10e02

Please sign in to comment.