(body: string)
| 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. |
| 105 | export const getMessagePushPreview = (body: string): string => |
| 106 | getMessagePreview(body) |
| 107 | .replace(/\s+/g, ' ') |
| 108 | .trim() |
| 109 | .slice(0, DM_PUSH_PREVIEW_LENGTH); |
no test coverage detected