We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7eb8b14 commit 5f69221Copy full SHA for 5f69221
src/components/chat/message-attachments.ts
@@ -79,20 +79,6 @@ export default class IgcMessageAttachmentsComponent extends LitElement {
79
);
80
}
81
82
- private getFile(attachment: IgcMessageAttachment): File | undefined {
83
- if (attachment.file) {
84
- return attachment.file;
85
- }
86
- if (attachment.url) {
87
- const url = new URL(attachment.url);
88
- const fileName = url.pathname.split('/').pop() || 'attachment';
89
- return new File([], fileName, {
90
- type: attachment.type || 'application/octet-stream',
91
- });
92
93
- return undefined;
94
95
-
96
private getURL(attachment: IgcMessageAttachment): string {
97
if (attachment.url) {
98
return attachment.url;
0 commit comments