I’m trying to find a way to change the message that shows in the channel preview. The specific case here is that I’m trying to modify the “direct_call:start” and “direct_call:end” messages that are generated by the Calls functionality.
I have a custom message render function for the Channel component that replaces the “direct_call” messages with friendly text. I’d like to apply something similiar to the Channel preview, because if the most recent activity was a call it will show “direct_call:end”.
I see that I can do this with renderChannelPreview, but then I need to essentially re-create the entire UI Kit component. I’m hoping for a way to use the built-in renderer without needing to replicate all the functionality from it myself, but also modify the message that show.
Is there any way to do this, or am I better off using renderChannelPreview with a custom component? Is there any way to get a source for the built-in renderer so I can copy it?
Using UI Kit version 2.2.1.