support lightboxes for image previews

This commit is contained in:
Matthew Hodgson 2016-04-04 00:18:18 +01:00
parent 0eb7b627fc
commit 96b0f42db2
3 changed files with 29 additions and 2 deletions

View file

@ -451,7 +451,7 @@ module.exports = React.createClass({
onMemberAvatarClick: function () {
var avatarUrl = this.props.member.user.avatarUrl;
if(!avatarUrl) return;
var httpUrl = MatrixClientPeg.get().mxcUrlToHttp(avatarUrl);
var ImageView = sdk.getComponent("elements.ImageView");
var params = {