MCPcopy Create free account
hub / github.com/dailydotdev/apps / getEditableText

Function getEditableText

packages/shared/src/features/messages/media.ts:88–91  ·  view source on GitHub ↗
(body: string)

Source from the content-addressed store, hash-verified

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).
88export const getEditableText = (body: string): string =>
89 parseMessageBody(body)
90 .flatMap((part) => (part.type === 'text' ? [part.text] : []))
91 .join('\n\n');
92
93export const withEditedText = (body: string, text: string): string =>
94 [

Callers 2

MessageBubbleFunction · 0.90
canEditFunction · 0.90

Calls 1

parseMessageBodyFunction · 0.85

Tested by

no test coverage detected