open ImageView when clicking on a set avatar

This commit is contained in:
Michael Telatynski 2019-12-16 15:08:22 +00:00
parent 9fa2680dc6
commit 5ab98e9899
4 changed files with 26 additions and 3 deletions

View file

@ -162,6 +162,7 @@ export default class RoomProfileSettings extends React.Component {
</div>
<AvatarSetting
avatarUrl={this.state.avatarUrl}
avatarName={this.state.displayName || this.props.roomId}
avatarAltText={_t("Room avatar")}
uploadAvatar={this.state.canSetAvatar ? this._uploadAvatar : undefined}
removeAvatar={this.state.canSetAvatar ? this._removeAvatar : undefined} />