tomer8007 / whatsapp-web-incognito

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

Extension relays on "Keep me signed in" being checked #43

Closed tomer8007 closed 2 years ago

tomer8007 commented 3 years ago

If someone logs in when "Keep me signed in" is off, WhatsApp will not save WASecretBundle in its local storage, and a result, the extension will not work.

crypto.js:24 WhatsAppInvisible: can't decrypt packet due to exception:
WACrypto.decryptWithWebCrypto @ crypto.js:24
crypto.js:25 TypeError: Cannot read property 'encKey' of null
    at getKeys (crypto.js:158)
    at Object.WACrypto.decryptWithWebCrypto (crypto.js:13)
    at interception.js:85
    at V (bootstrap_qr.5493d3169ddcc45ad148.js:2)
    at new v (bootstrap_qr.5493d3169ddcc45ad148.js:2)
    at Object.wsHook.after (interception.js:76)
    at WebSocket.<anonymous> (<anonymous>:65:12)

Fixing this would require using the session storage instead.