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

Function getMessagePushPreview

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

Source from the content-addressed store, hash-verified

103// The inbox summary, cut to what fits a push body. Images and GIFs stay as
104// their labels, so a photo-only message still reads as something.
105export const getMessagePushPreview = (body: string): string =>
106 getMessagePreview(body)
107 .replace(/\s+/g, ' ')
108 .trim()
109 .slice(0, DM_PUSH_PREVIEW_LENGTH);

Callers 2

media.spec.tsFile · 0.90
createXmppTransportFunction · 0.90

Calls 2

getMessagePreviewFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected