Page MenuHomePhabricator

[keyserver/lib/native/web] introduce color-utils and move color functions from thread-utils to color-utils
ClosedPublic

Authored by ginsu on Mar 25 2023, 10:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 5:55 AM
Unknown Object (File)
Sun, Apr 7, 10:53 AM
Unknown Object (File)
Sun, Apr 7, 7:23 AM
Unknown Object (File)
Thu, Mar 28, 8:33 AM
Unknown Object (File)
Thu, Mar 28, 8:33 AM
Unknown Object (File)
Thu, Mar 28, 8:33 AM
Unknown Object (File)
Thu, Mar 28, 8:32 AM
Unknown Object (File)
Thu, Mar 28, 8:30 AM
Subscribers

Details

Summary

When working on D7178 I was getting the following error in keyserver:

Screenshot 2023-03-23 at 2.09.01 PM.png (1×3 px, 2 MB)

D7178 should offer more context, but the TLDR:

We use selectedThreadColor to build a default user emoji avatar, and we are trying to access selectedThreadColor before it gets initialized when we build this user avatar deeper in thread-utils

Test Plan

flow and the error messages in the keyserver logs no longer appear.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: ashoat, atul.

Looks like this is just a move diff so blindly accepting. Not familiar with that error myself, wondering what "initialization" means in this context (is it a circular dependency issue?)

This revision is now accepted and ready to land.Mar 26 2023, 5:43 AM

Not familiar with that error myself, wondering what "initialization" means in this context (is it a circular dependency issue?)

Yes, I believe this was a circular dependency issue, but I will add a comment in D7178 pointing to where the error was being caused