feat(asset): enhance asset handling by adding storageKey and updating upload functions

This commit is contained in:
mlogclub
2026-04-17 12:54:26 +08:00
parent 2631689958
commit 0dfa783eec
7 changed files with 81 additions and 24 deletions
@@ -417,9 +417,7 @@ export function ChatPanel() {
onUploadImage={async (file) => {
shouldStickToBottomRef.current = true;
const uploaded = await uploadImage(file);
return uploaded
? { url: uploaded.url, filename: uploaded.filename }
: null;
return uploaded;
}}
onSendAttachment={async (file) => {
shouldStickToBottomRef.current = true;