(timestamp: number, senderPlatformId: string, content: string | null)
| 40 | } |
| 41 | |
| 42 | export function generateMessageKey(timestamp: number, senderPlatformId: string, content: string | null): string { |
| 43 | const normalizedContent = content || null |
| 44 | const parts = [ |
| 45 | String(timestamp), |
| 46 | senderPlatformId, |
| 47 | normalizedContent === null ? 'null' : 'text', |
| 48 | normalizedContent ?? '', |
| 49 | ] |
| 50 | return fnv1a64(parts.join('\0')) |
| 51 | } |
no test coverage detected