Remove avatarForExport string
This commit is contained in:
parent
55ffb318e5
commit
685441baf5
2 changed files with 15 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue