Skip to content
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

Pass groupStyles through VirtualizedMessageList #2214

Closed
wants to merge 1 commit into from

Conversation

TaylorBeeston
Copy link

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!

@gerardopar
Copy link

🚀

@MartinCupela
Copy link
Contributor

Hey @TaylorBeeston, thank you for the submission. We will pick it up from here as there are tests missing :)

@stream-ci-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 11.23.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants