tomer8007 / whatsapp-web-incognito

A Chrome extension that disables read receipts and presence updates on WhatsApp Web
MIT License
312 stars 74 forks source link

Icon appears twice in status bar sometimes [Race] #161

Open IsaacHatton opened 2 months ago

IsaacHatton commented 2 months ago

image On beta v2.3000.1012596890 of WhatsApp, Chrome webstore version. image

I'm finding it hard to reproduce, it happens sometimes, but other times it doesn't. I can't work out what causes it to happen.

tomer8007 commented 2 months ago

This is a problem I've seen in the past and I fixed it previously. Per your report I see it's happening again. The following code should prevent adding the icon twice: https://github.com/tomer8007/whatsapp-web-incognito/blob/4717bc88c2a7a0eea54d20707a401f5188c193ec/core/ui.js#L115 It's probably a race as I wrote here: https://github.com/tomer8007/whatsapp-web-incognito/blob/4717bc88c2a7a0eea54d20707a401f5188c193ec/core/ui.js#L111