( originalAttachments: readonly AttachmentBlock[], removedAttachmentIds: Iterable<string> )
| 29 | } |
| 30 | |
| 31 | export function remainingEditableAttachments( |
| 32 | originalAttachments: readonly AttachmentBlock[], |
| 33 | removedAttachmentIds: Iterable<string> |
| 34 | ): AttachmentBlock[] { |
| 35 | const removedAttachmentIdSet = new Set(removedAttachmentIds); |
| 36 | return originalAttachments.filter( |
| 37 | attachment => !removedAttachmentIdSet.has(attachment.attachmentId) |
| 38 | ); |
| 39 | } |
| 40 | |
| 41 | export function buildMessageEditContent({ |
| 42 | text, |
no test coverage detected