Fix default icon color seed minds#4627
Ticket(s) / Related Merge Requests
Summary of Changes
Fix a race condition with the default avatar generation system, wherein on the first channel load if multiple posts are made rapidly (e.g. through RSS sync), non-determinism in the default avatar generation function leads to multiple overlapping requests generating different avatars.
This fix uses a similar approach to banner generation, doing $userGuid % count($arr)
to generate deterministically.
Testing Considerations
Note: front#6159
-
For new channels, the avatar color should be consistent.
Deployment Considerations
Standard deployment.
Regression Scope
Default avatar generation/
Platform Affected (web, mobile, etc)
Engine (web/mob).
Developer Testing Completed
Manual.
Screenshots / Screen Recording
simplescreenrecorder-2024-02-15_16.40.10
Does this impact
-
Localization -
Dark/light mode -
Guest mode
Definition of Done Checklist
-
The Acceptance Criteria has been met -
Code is tested: Testing includes unit/spec, E2E/automated and manual testing -
Merge requests description has been filled out
Edited by Ben