mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-07 00:04:54 +08:00
feat: #499 revert delete session
This commit is contained in:
@@ -59,6 +59,7 @@ export function ChatList() {
|
||||
state.removeSession,
|
||||
state.moveSession,
|
||||
]);
|
||||
const chatStore = useChatStore();
|
||||
|
||||
const onDragEnd: OnDragEndResponder = (result) => {
|
||||
const { destination, source } = result;
|
||||
@@ -95,10 +96,7 @@ export function ChatList() {
|
||||
index={i}
|
||||
selected={i === selectedIndex}
|
||||
onClick={() => selectSession(i)}
|
||||
onDelete={() =>
|
||||
(!isMobileScreen() || confirm(Locale.Home.DeleteChat)) &&
|
||||
removeSession(i)
|
||||
}
|
||||
onDelete={chatStore.deleteSession}
|
||||
/>
|
||||
))}
|
||||
{provided.placeholder}
|
||||
|
Reference in New Issue
Block a user