mirror of https://github.com/vector-im/riot-web
Merge pull request #5422 from matrix-org/t3chguy/fix/_940
Fix BaseAvatar sometimes messing up and duplicating the urlpull/21833/head
commit
447e87ceab
|
@ -51,7 +51,8 @@ const calculateUrls = (url, urls) => {
|
|||
_urls = urls || [];
|
||||
|
||||
if (url) {
|
||||
_urls.unshift(url); // put in urls[0]
|
||||
// copy urls and put url first
|
||||
_urls = [url, ..._urls];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue