Save users' avatars

This commit is contained in:
Jaiwanth 2021-05-31 22:27:29 +05:30
parent fa073cd958
commit 28a1a551fe
4 changed files with 35 additions and 7 deletions

View file

@ -254,6 +254,9 @@ interface IProps {
// Used while exporting to refer to the local source rather than the online one
mediaSrc?: string;
// Used while exporting to refer to the local avatar rather than the online one
avatarSrc?: string;
// show twelve hour timestamps
isTwelveHour?: boolean;
@ -939,8 +942,11 @@ export default class EventTile extends React.Component<IProps, IState> {
}
avatar = (
<div className="mx_EventTile_avatar">
<MemberAvatar member={member}
width={avatarSize} height={avatarSize}
<MemberAvatar
avatarSrc = {this.props.avatarSrc}
member={member}
width={avatarSize}
height={avatarSize}
viewUserOnClick={true}
/>
</div>