Skip to content

Commit 5f69221

Browse files
committed
chore(*): remove unused method
1 parent 7eb8b14 commit 5f69221

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/components/chat/message-attachments.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,6 @@ export default class IgcMessageAttachmentsComponent extends LitElement {
7979
);
8080
}
8181

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-
9682
private getURL(attachment: IgcMessageAttachment): string {
9783
if (attachment.url) {
9884
return attachment.url;

0 commit comments

Comments
 (0)