Merge pull request #5422 from matrix-org/t3chguy/fix/_940

Fix BaseAvatar sometimes messing up and duplicating the url
pull/21833/head
Michael Telatynski 2020-11-13 00:29:26 +00:00 committed by GitHub
commit 447e87ceab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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];
}
}