Feat: Delete or filter conversations #3221 (#9491)

### What problem does this PR solve?

Feat: Delete or filter conversations #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-08-15 12:05:27 +08:00
committed by GitHub
parent 2114e966d8
commit 30ae78755b
8 changed files with 118 additions and 17 deletions

View File

@ -43,7 +43,12 @@ export const useSelectDerivedConversationList = () => {
const { t } = useTranslate('chat');
const [list, setList] = useState<Array<IConversation>>([]);
const { data: conversationList, loading } = useFetchConversationList();
const {
data: conversationList,
loading,
handleInputChange,
searchString,
} = useFetchConversationList();
const { id: dialogId } = useParams();
const { setNewConversationRouteParams } = useSetNewConversationRouteParams();
const prologue = useFindPrologueFromDialogList();
@ -81,5 +86,11 @@ export const useSelectDerivedConversationList = () => {
setList([...conversationList]);
}, [conversationList]);
return { list, addTemporaryConversation, loading };
return {
list,
addTemporaryConversation,
loading,
handleInputChange,
searchString,
};
};