(text)
| 3025 | } |
| 3026 | |
| 3027 | function rememberIMessageReply(text) { |
| 3028 | const normalized = normalizeIMessageEchoText(text); |
| 3029 | if (!normalized) return; |
| 3030 | const now = Date.now(); |
| 3031 | for (const [replyText, sentAt] of recentIMessageReplies) { |
| 3032 | if (now - sentAt > imessageReplyEchoTtlMs) recentIMessageReplies.delete(replyText); |
| 3033 | } |
| 3034 | recentIMessageReplies.set(normalized, now); |
| 3035 | } |
| 3036 | |
| 3037 | function isRecentIMessageReplyEcho(text) { |
| 3038 | const normalized = normalizeIMessageEchoText(text); |
no test coverage detected