MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / buildQuotePrefix

Function buildQuotePrefix

packages/parser/src/formats/google-chat-takeout.ts:226–232  ·  view source on GitHub ↗
(message: GoogleChatMessage)

Source from the content-addressed store, hash-verified

224}
225
226function buildQuotePrefix(message: GoogleChatMessage): string | null {
227 const quote = message.quoted_message_metadata
228 const quoteText = quote?.text?.trim()
229 if (!quoteText) return null
230 const creator = quote?.creator?.name?.trim() || quote?.creator?.email?.trim()
231 return creator ? `> ${creator}: ${quoteText}` : `> ${quoteText}`
232}
233
234function buildMessageContent(message: GoogleChatMessage): string {
235 const parts: string[] = []

Callers 1

buildMessageContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected