Skip to content

Commit

Permalink
feat: added removeMessagesFromConversation method to ChatProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
supersnager committed Dec 18, 2022
1 parent 8bdf734 commit c957453
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/provider/ChatProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type ChatContextProps = ChatState & {
setCurrentMessage: (message: string) => void;
resetState: () => void;
service: IChatService;
removeMessagesFromConversation: (conversationId: ConversationId) => void;
};

// Experimental
Expand Down Expand Up @@ -573,6 +574,7 @@ export const ChatProvider = <S extends IChatService>({
resetState,
updateState,
service: serviceRef.current,
removeMessagesFromConversation,
}}
>
{children}
Expand Down

0 comments on commit c957453

Please sign in to comment.