buzz listener: remove receipt reactions when zai replies (full Fizz lifecycle)
This commit is contained in:
parent
50eba7b558
commit
028175b612
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue