nutritious-bird-16298
10/01/2025, 12:43 AMconversation_item_added.
My question is around handling the case where the user wants to resume that conversation, potentially days or weeks later. Can I somehow load those existing messages into the chat context of a new Livekit session/room? Ideally I would be able to take advantage of LiveKit’s SDKs to implement the frontend and show message history (e.g. useChat from the React SDK) rather than building something from scratch and having to manually merge “old” messages with “live” messages.proud-lawyer-39815
10/01/2025, 1:35 AMnutritious-bird-16298
10/01/2025, 3:28 AMuseChat or the Chat React component, will it load those messages, or do those components/hooks only render messages that were literally added to the session while they were mounted? I can work around this limitation easily enough if necessary but it would be nice to avoid stitching things together if I can avoid it.
https://docs.livekit.io/reference/components/react/component/chat/#remarks
Message history is not persisted and will be lost if the component is refreshed. You may want to persist message history in the browser, a cache or a database.https://docs.livekit.io/reference/components/react/hook/usechat/#remarks
Only users who are in the room at the time of dispatch will receive messages - Message history is not persisted between sessions