MCPcopy
hub / github.com/guangzhengli/ChatFiles / saveConversation

Function saveConversation

utils/app/conversation.ts:24–26  ·  view source on GitHub ↗
(conversation: Conversation)

Source from the content-addressed store, hash-verified

22};
23
24export const saveConversation = (conversation: Conversation) => {
25 localStorage.setItem('selectedConversation', JSON.stringify(conversation));
26};
27
28export const saveConversations = (conversations: Conversation[]) => {
29 localStorage.setItem('conversationHistory', JSON.stringify(conversations));

Callers 5

handleSendFunction · 0.90
handleSelectConversationFunction · 0.90
handleNewConversationFunction · 0.90
handleDeleteConversationFunction · 0.90
updateConversationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected