fix: improve username validation in sendMessage#41564
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
|
WalkthroughChangesMessage validation
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
This PR removes an unsafe type assertion in the message sending flow and improves username validation with safer type handling.
What Changed
Why
This makes the code easier to maintain and reduces the risk of invalid values reaching the message handling logic.
Testing
Checklist