Fix ChannelAvatar not using UserAvatar from ComponentFactory#6407
Fix ChannelAvatar not using UserAvatar from ComponentFactory#6407VelikovPetar wants to merge 1 commit intodevelopfrom
ChannelAvatar not using UserAvatar from ComponentFactory#6407Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
PR checklist ✅All required conditions are satisfied:
🎉 Great job! This PR is ready for review. |
ChannelAvatar not using UserAvatar from ComponentFactory
SDK Size Comparison 📏
|
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |



Goal
ChannelAvatarwas rendering its inner user avatars by callingUserAvatardirectly instead of going throughChatTheme.componentFactory.UserAvatar. This meant integrators who customisedUserAvatarvia the component factory saw their override ignored when the avatar was shown inside a channel avatar (DM and stacked group variants).Closes AND-1167.
Implementation
Replaced direct
UserAvatar(...)calls inChannelAvatar.ktwithChatTheme.componentFactory.UserAvatar(params = UserAvatarParams(...))in all three sites:This routes the rendering through the configured component factory so factory overrides are respected.
UI Changes
No UI changes by default. Integrators who provide a custom
UserAvatarviaChatTheme.componentFactorywill now see their override applied insideChannelAvatar.Testing
ComponentFactorythat overridesUserAvatarand confirm the override is now used by channel avatars.Summary by CodeRabbit