From c957453880a55438c1063490e2d9e81b60a50047 Mon Sep 17 00:00:00 2001 From: Super Snager Date: Sun, 18 Dec 2022 10:23:00 +0100 Subject: [PATCH] feat: added removeMessagesFromConversation method to ChatProvider --- src/provider/ChatProvider.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/provider/ChatProvider.tsx b/src/provider/ChatProvider.tsx index 4784ef6..2df2349 100644 --- a/src/provider/ChatProvider.tsx +++ b/src/provider/ChatProvider.tsx @@ -68,6 +68,7 @@ type ChatContextProps = ChatState & { setCurrentMessage: (message: string) => void; resetState: () => void; service: IChatService; + removeMessagesFromConversation: (conversationId: ConversationId) => void; }; // Experimental @@ -573,6 +574,7 @@ export const ChatProvider = ({ resetState, updateState, service: serviceRef.current, + removeMessagesFromConversation, }} > {children}