fix: preserve dates for chat imports
Co-Authored-By: conql <49243542+conql@users.noreply.github.com>
This commit is contained in:
co-authored by
conql
parent
3f800c069e
commit
2c6227e4b6
@@ -132,7 +132,18 @@
|
||||
return null;
|
||||
});
|
||||
if (!chat && item) {
|
||||
chat = await importChat(localStorage.token, item.chat, item?.meta ?? {});
|
||||
chat = await importChat(
|
||||
localStorage.token,
|
||||
item.chat,
|
||||
item?.meta ?? {},
|
||||
false,
|
||||
null,
|
||||
item?.created_at ?? null,
|
||||
item?.updated_at ?? null
|
||||
).catch((error) => {
|
||||
toast.error(`${error}`);
|
||||
return null;
|
||||
});
|
||||
}
|
||||
|
||||
// Move the chat
|
||||
|
||||
Reference in New Issue
Block a user