mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 21:29:08 +00:00
Revert "Convert conversationId int to string before making api request to bulk update file filters"
This reverts commitc9665fb20b. Revert "Fix handling for new conversation in agents page" This reverts commit3466f04992. Revert "Add a unique_id field for identifiying conversations (#914)" This reverts commitece2ec2d90.
This commit is contained in:
@@ -147,13 +147,10 @@ function ChatBodyData(props: ChatBodyDataProps) {
|
||||
if (message && !processingMessage) {
|
||||
setProcessingMessage(true);
|
||||
try {
|
||||
const newConversationMetadata = await createNewConversation(
|
||||
selectedAgent || "khoj",
|
||||
);
|
||||
onConversationIdChange?.(newConversationMetadata.conversationId);
|
||||
window.location.href = `/chat?v=${newConversationMetadata.conversationUniqueId}`;
|
||||
const newConversationId = await createNewConversation(selectedAgent || "khoj");
|
||||
onConversationIdChange?.(newConversationId);
|
||||
window.location.href = `/chat?conversationId=${newConversationId}`;
|
||||
localStorage.setItem("message", message);
|
||||
localStorage.setItem("conversationId", newConversationMetadata.conversationId);
|
||||
if (image) {
|
||||
localStorage.setItem("image", image);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user