Remove avatarForExport string

This commit is contained in:
Jaiwanth 2021-06-26 23:40:35 +05:30
parent 55ffb318e5
commit 685441baf5
2 changed files with 15 additions and 9 deletions

View file

@ -67,8 +67,7 @@ export default class MemberAvatar extends React.Component<IProps, IState> {
private static getState(props: IProps): IState {
if (props.member?.name) {
let imageUrl = null;
if (props.forExport && props.member.getMxcAvatarUrl()) imageUrl = "avatarForExport";
else if (props.member.getMxcAvatarUrl()) {
if (props.member.getMxcAvatarUrl()) {
imageUrl = mediaFromMxc(props.member.getMxcAvatarUrl()).getThumbnailOfSourceHttp(
props.width,
props.height,