MCPcopy Create free account
hub / github.com/EyuCoder/chatgpt-pro / addMessage

Function addMessage

src/hooks/useMessageCollection.js:29–31  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

27 * @param {Object} message - The message to add to the collection.
28 */
29 const addMessage = (message) => {
30 setMessages((prev) => [...prev, message]);
31 };
32
33 /**
34 * A function for clearing all messages in the collection and resetting to the initial message.

Callers 1

updateMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected