diff --git a/src/settings.tsx b/src/settings.tsx index 9e4c724..f453992 100644 --- a/src/settings.tsx +++ b/src/settings.tsx @@ -160,6 +160,21 @@ export default (props: { > Copy Link + { + if ( + !confirm( + `Are you sure to clear all ${props.chatStore.history.length} messages?` + ) + ) + return; + props.chatStore.history = []; + props.setChatStore({ ...props.chatStore }); + }} + > + Clear History + {