stream-chat-react icon indicating copy to clipboard operation
stream-chat-react copied to clipboard

Pass groupStyles through VirtualizedMessageList

Open TaylorBeeston opened this issue 1 year ago • 2 comments

Submit a pull request

🎯 Goal

Describe why we are making this change

We are trying to switch to VirtualizedMessageList and found that our custom groupStyles stopped working!

When I dug around, I found that the prop is simply not getting passed through.

🛠 Implementation details

Provide a description of the implementation

Inside of messageRender in VirtualizedMessageListComponents, I grab the messageGroupStyles object off of the Virtuoso context, grab the groupStyles string that has been set for this message, then add it as the groupStyles prop for the Messsage component.

🎨 UI Changes

Add relevant screenshots

I was having trouble getting this to build locally to get some screenshots =( It would build fine, but I was getting errors about multiple versions of react when trying to link the locally built package. I figured that's probably more headache than it's worth so I thought I'd just get this PR up!

TaylorBeeston avatar Dec 12 '23 19:12 TaylorBeeston