feat(asset): enhance asset handling by adding storageKey and updating upload functions
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user