-
Notifications
You must be signed in to change notification settings - Fork 834
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
Make Sure that the two users in a DM Chat don't have the same color #3546
Conversation
@RashulChutani is attempting to deploy a commit to the coral-xyz Team on Vercel. A member of the Team first needs to authorize it. |
Co-authored-by: Getabalew Tesfaye <[email protected]>
Co-authored-by: Getabalew Tesfaye <[email protected]>
Hi @getusha Thanks for suggesting the refactors. I have pushed the suggested changes. Thanks. |
Hi @hkirat Just a gentle reminder to review the requested changes. I will be extremely thankful. 😃 |
Hi @hkirat, I have added the changes requested. Thanks. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Thankyou @RashulChutani for your contribution! |
My Pleasure! 🙂 |
This PR makes sure that users in a DM Chat don't have the same color.
Fixes #3459
It works by checking if the
uniqueUserIds
has a length of 2, whichimplies that the chat is between 2 users. It further checks if the users
have been assigned the same
colorIndex
. If it is the case, it changes itfor one of them.