feat(app): disallow duplicate attachments (#39464)

This commit is contained in:
Aarav Sareen 2026-07-30 14:32:15 +05:30 committed by GitHub
commit eca5e68a5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 124 additions and 3 deletions

View file

@ -368,6 +368,7 @@ export function usePromptInputV2Controller(props: PromptInputV2ControllerProps):
title: language.t("prompt.toast.pasteUnsupported.title"),
description: language.t("prompt.toast.pasteUnsupported.description"),
}),
duplicate: () => showToast({ title: language.t("prompt.toast.attachmentDuplicate.title") }),
onError: (error) =>
showToast({
variant: "error",