Add color hash for user avatar backgrounds

This commit is contained in:
Gabe Kangas
2020-06-15 13:41:37 -07:00
parent 986c168d07
commit 7e959e3ba1
3 changed files with 93 additions and 0 deletions

View File

@@ -19,6 +19,9 @@ class Message {
var linked = autoLink(this.body, { embed: true });
return this.addNewlines(linked);
}
userColor() {
return colorForString(this.author);
}
toModel() {
return {