mirror of
https://github.com/vector-im/element-call.git
synced 2026-05-10 10:24:44 +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 (
|
||||
<CompoundAvatar
|
||||
key={id}
|
||||
className={className}
|
||||
id={id}
|
||||
name={name}
|
||||
|
||||
Reference in New Issue
Block a user