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, Nov 25, 4:38 AM
Unknown Object (File)
Mon, Nov 25, 2:43 AM
Unknown Object (File)
Fri, Nov 8, 7:40 AM
Unknown Object (File)
Fri, Nov 8, 7:40 AM
Unknown Object (File)
Fri, Nov 8, 7:40 AM
Unknown Object (File)
Fri, Nov 8, 7:39 AM
Unknown Object (File)
Fri, Nov 8, 3:33 AM
Unknown Object (File)
Tue, Nov 5, 2:05 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
No Lint Coverage
Unit
No Test Coverage

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