-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Populate colorHash and colorId #2630
Conversation
Pull Request Checklist
|
Jenkins Builds
|
it returns color id for given pubkey
accounts displayed to users on login page should display colorHash and avatar fallback color (aka colorId)
b8ca47f
to
2953096
Compare
colorHash, _ := colorhash.GenerateFor(string(acc.PublicKey.Bytes())) | ||
colorID, _ := identityUtils.ToColorID(string(acc.PublicKey.Bytes())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not bad per se, but i wonder if it would be a good idea to log an error in case any of these functions fail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested in status-im/status-desktop#5424 (review)
required by: status-im/status-desktop#5424
accounts displayed to users on login page should display colorHash and
avatar fallback color (aka colorId)