WAClient / WALC

An unofficial WhatsApp Desktop client for linux systems.
GNU General Public License v3.0
248 stars 40 forks source link

[Bug Report] WALC window closes every time the page is reloaded #185

Closed albakhtari closed 2 years ago

albakhtari commented 2 years ago

Describe the bug When you reload the page using Ctrl+R / Ctrl+Shift+R / location.reload() in the console, the window closes.

WALC Installation Type: All

To Reproduce Steps to reproduce the behaviour:

  1. Reload the page
  2. See error

Expected behaviour I just reloads the page without closing the window

Did you try closing and then opening it back?: Yes

Zzombiee2361 commented 2 years ago

I said this before, reloading the page is an unsupported feature, I can add restart app button though. I think what happens is whatsapp-web.js tries to restart the browser when whatsapp is disconnected (which happens if you reload the page).

Last time you said that you need to reload the page to hide your chat, now that there's app lock you should try it and give me feedback on how it can be improved.

albakhtari commented 2 years ago

I haven't tried the app lock yet. But the reason I reported this bug is because I was looking into the open chat without saving number feature.

Zzombiee2361 commented 2 years ago

What that has to do with reloading the page? That said, opening a chat by a number could totally be added. You should've open a feature request for that.

albakhtari commented 2 years ago

Can you leave it to me? I'll commit to my fork then make a pull request.

Zzombiee2361 commented 2 years ago

Oh ok then. Developing it is a pain sometime, when you modify nodejs or preload code, you need to restart the entire app to see the effect. No way around that unfortunately.

albakhtari commented 2 years ago

I did web development before, don't worry :+1: And I'm quite experienced with JS

MenacingPerson commented 2 years ago

If I click "Update Whatsapp" it crashes too