(message: GoogleChatMessage)
| 224 | } |
| 225 | |
| 226 | function 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 | |
| 234 | function buildMessageContent(message: GoogleChatMessage): string { |
| 235 | const parts: string[] = [] |
no outgoing calls
no test coverage detected