mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-10 19:44:23 +01:00
feat: Enhance updateConvoInAllQueries to support moving conversations to the top
This commit is contained in:
parent
c7bc5548bc
commit
4c115b684c
3 changed files with 134 additions and 10 deletions
|
|
@ -310,7 +310,7 @@ export default function useEventHandlers({
|
|||
if (requestMessage.parentMessageId === Constants.NO_PARENT) {
|
||||
addConvoToAllQueries(queryClient, update);
|
||||
} else {
|
||||
updateConvoInAllQueries(queryClient, update.conversationId!, (_c) => update);
|
||||
updateConvoInAllQueries(queryClient, update.conversationId!, (_c) => update, true);
|
||||
}
|
||||
} else if (setConversation) {
|
||||
setConversation((prevState) => {
|
||||
|
|
@ -385,7 +385,7 @@ export default function useEventHandlers({
|
|||
if (parentMessageId === Constants.NO_PARENT) {
|
||||
addConvoToAllQueries(queryClient, update);
|
||||
} else {
|
||||
updateConvoInAllQueries(queryClient, update.conversationId!, (_c) => update);
|
||||
updateConvoInAllQueries(queryClient, update.conversationId!, (_c) => update, true);
|
||||
}
|
||||
}
|
||||
} else if (setConversation) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue