How to pin a message in chat?

Hello,

Is it possible to pin messages to the top of chat? This is a pretty standard and expected feature for users. Seems relatively easy, but didn’t find any documentation or notes about how to implement.

Thank you in advance.

Hi @Geoff_Garber

Welcome to Sendbird Community!

Unfortunately, we do not provide this functionality yet.
We are planning to release this feature later this year. Please wait for our pinned messages feature!

Hey @Miyoung_Han
Pin message is really important feature for us, any way we can implement it in some other way around?

Hi @aseem_gupta,

Welcome to the Sendbird Community.

You could utilize the data field on a message to indicate to the UI that it should be pinned. Then on your UI you can handle it accordingly when you see that data included.

Hi Tyler,

Do you have an update on when this pinned messaging feature will be released? Also, do you have any documentation or more detail/examples on leveraging the data field/UI workaround?

Thanks!

Hi @Geoff_Garber,

My apologies for the delayed response. We do not currently have a timeline as to when this feature will be released. It’s still currently on our roadmap but does not have a definitive date.

In terms of your second request, we do not have any documentation around how you might leverage this as there are a number of theoretical solutions utilizing things like the data field or custom_type.

The general gist though is that you would add data to the data field that the message should be pinned. Then when you go to render the message in the UI, you would look at that data field or custom_type and then place the message where you believe it needs to be in the UI.

1 Like