(body: string)
| 86 | // Only the typed text of a message is edited; its images ride along, in the |
| 87 | // shape the composer builds (text first, then one image per paragraph). |
| 88 | export const getEditableText = (body: string): string => |
| 89 | parseMessageBody(body) |
| 90 | .flatMap((part) => (part.type === 'text' ? [part.text] : [])) |
| 91 | .join('\n\n'); |
| 92 | |
| 93 | export const withEditedText = (body: string, text: string): string => |
| 94 | [ |
no test coverage detected