mirror of https://github.com/vector-im/riot-web
Fix BaseAvatar sometimes messing up and duplicating the url
parent
f0ca8e152e
commit
75888fb7b6
|
@ -51,7 +51,8 @@ const calculateUrls = (url, urls) => {
|
||||||
_urls = urls || [];
|
_urls = urls || [];
|
||||||
|
|
||||||
if (url) {
|
if (url) {
|
||||||
_urls.unshift(url); // put in urls[0]
|
// copy urls and put url first
|
||||||
|
_urls = [url, ..._urls];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue