Fixed some avatar stuff

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2020-12-22 09:29:35 +01:00
parent 15d10042ee
commit 48cfd3f9da
2 changed files with 2 additions and 1 deletions

View File

@ -62,6 +62,7 @@ export default class RoomProfileSettings extends React.Component {
}
_uploadAvatar = () => {
if (!this.state.canSetAvatar) return;
this._avatarUpload.current.click();
};

View File

@ -65,7 +65,7 @@ const AvatarSetting = ({avatarUrl, avatarAltText, avatarName, uploadAvatar, remo
const avatarClasses = classNames({
"mx_AvatarSetting_avatar": true,
"mx_AvatarSetting_avatar_hovering": isHovering,
"mx_AvatarSetting_avatar_hovering": isHovering && uploadAvatar,
});
return <div className={avatarClasses}>
{avatarElement}