diff --git a/src/common/attachment-drafts/useAttachmentDrafts.tsx b/src/common/attachment-drafts/useAttachmentDrafts.tsx index ac13da289..bc949a07a 100644 --- a/src/common/attachment-drafts/useAttachmentDrafts.tsx +++ b/src/common/attachment-drafts/useAttachmentDrafts.tsx @@ -4,7 +4,7 @@ import type { FileWithHandle } from 'browser-fs-access'; import { addSnackbar } from '~/common/components/useSnackbarsStore'; import { asValidURL } from '~/common/util/urlUtils'; -import { extractFilePathsWithCommonRadix } from '~/common/util/dropTextUtils'; +import { extractFilePathsFromCommonRadix } from '~/common/util/dropTextUtils'; import { getClipboardItems } from '~/common/util/clipboardUtils'; import type { DConversationId } from '~/common/stores/chat/chat.conversation'; @@ -58,27 +58,40 @@ export const useAttachmentDrafts = (attachmentsStoreApi: AttachmentDraftsStoreAp const heuristicIsPowerPoint = textHtml.includes('xmlns:m="http://schemas.microsoft.com/office/20') && textHtml.includes('