mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-20 05:51:08 +02:00
add comment
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
af383c5a80
commit
cc43de6ebf
@ -82,7 +82,7 @@ function urlForColor(color) {
|
||||
const colorToDataURLCache = new Map();
|
||||
|
||||
export function defaultAvatarUrlForString(s) {
|
||||
if (!s) return "";
|
||||
if (!s) return ""; // XXX: should never happen but empirically does by evidence of a rageshake
|
||||
const defaultColors = ['#0DBD8B', '#368bd6', '#ac3ba8'];
|
||||
let total = 0;
|
||||
for (let i = 0; i < s.length; ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user