buzz listener: remove receipt reactions when zai replies (full Fizz lifecycle)

This commit is contained in:
zai-agent 2026-09-17 20:02:06 +00:00
parent 50eba7b558
commit 028175b612

View file

@ -145,7 +145,10 @@ ws.onmessage = (msg) => {
if (!evt) return if (!evt) return
if (evt.pubkey === ME) { if (evt.pubkey === ME) {
const chTag = (evt.tags.find((t) => t[0] === 'h') || [])[1] const chTag = (evt.tags.find((t) => t[0] === 'h') || [])[1]
if (chTag) stopTyping(chTag) if (chTag) {
stopTyping(chTag)
clearReceipts(chTag) // zai replied -> remove 👀/💬 from pending messages
}
return return
} }
if (seen.has(evt.id)) return if (seen.has(evt.id)) return