Skip to main content

Navigate to a specific message in CometChatConversationWithMessages using Message ID

Add support to automatically scroll and highlight a specific message in CometChatConversationWithMessages on external actions using the message ID.

Status: Completed1 comment

Log in to comment and vote

Comments1

  • Pourav Raj changed status to Completed
    TeamPinned

    Hi! This is now available — you can programmatically scroll to any specific message in the chat UI using the goToMessageId prop. Simply pass the message ID and the message list will automatically scroll to that message when it loads, enabling seamless navigation to important or referenced messages.

    Prop: goToMessageId — The ID of the message that the list should automatically scroll to when first loaded.

    Let us know if you have any questions!