parent
3b3db35b84
commit
cb0914ec2a
@ -0,0 +1,5 @@ |
||||
const colors = ['#F44336', '#E91E63', '#9C27B0', '#673AB7', '#3F51B5', '#2196F3', '#03A9F4', '#00BCD4', '#009688', '#4CAF50', '#8BC34A', '#CDDC39', '#FFC107', '#FF9800', '#FF5722', '#795548', '#9E9E9E', '#607D8B']; |
||||
|
||||
RocketChat.getAvatarColor = function(name) { |
||||
return colors[name.length % colors.length]; |
||||
}; |
||||
Loading…
Reference in new issue