mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-08 20:09:19 +00:00
Possible fix for avatars showing stale image data
By giving React a different key for different users' avatars, this hopefully ensures that a new <img> element will be created when the avatar component switches to a different user.
This commit is contained in:
@@ -136,6 +136,7 @@ export const Avatar: FC<Props> = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<CompoundAvatar
|
<CompoundAvatar
|
||||||
|
key={id}
|
||||||
className={className}
|
className={className}
|
||||||
id={id}
|
id={id}
|
||||||
name={name}
|
name={name}
|
||||||
|
|||||||
Reference in New Issue
Block a user