Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Whatsapp Web asks to be updated on every load #572

Closed
1 task done
eitchtee opened this issue Aug 25, 2022 · 6 comments
Closed
1 task done

Bug: Whatsapp Web asks to be updated on every load #572

eitchtee opened this issue Aug 25, 2022 · 6 comments
Labels
bug 🪲 Something isn't working

Comments

@eitchtee
Copy link

Avoid duplicates

  • I have searched the issues tracker for a bug report similar to mine, in vain

Ferdium Version

Version: 6.0.1-nightly.17

What Operating System are you using?

Windows

Operating System Version

Windows 10 version 21H2

What arch are you using?

x64

Last Known Working Ferdium version

No response

Expected Behavior

Upon clicking the message to update Whatsapp Web it should refresh and install a new version and not ask again until other update is available.

Actual Behavior

Upon clicking the button to update, Whatsapp Web refreshes, but the version "installed" remains the same, getting asked to update again on a refresh of the page.

Steps to reproduce

  1. Activate a Whatsapp Web instance

Debug link

https://debug.ferdium.org/42fb4293-0162-4f6c-bad6-131b3a078f0d

Screenshots

image
Message to update every time Whatsapp Web is loaded

image
Whatsapp Web version before updating

image
Version after updating

Additional information

It's worth noting that when I open Whatsapp Web on a browser, it runs on the same version as the one installed on Ferdium (v. 2.2230.15), but no update message is displayed, meaning this could be related to Ferdium itself not passing the correct information on storing required information.

@eitchtee eitchtee added the bug 🪲 Something isn't working label Aug 25, 2022
@eitchtee
Copy link
Author

eitchtee commented Aug 25, 2022

This was mentioned on #535 but not given attention due to other problems on the same issue.
Also ferdium/ferdium-recipes/issues/32

@eitchtee
Copy link
Author

eitchtee commented Sep 6, 2022

Looks like this fixed itself, running v.2.2232.8 right now and no prompts.

@eitchtee eitchtee closed this as completed Sep 6, 2022
@DeN-AlB
Copy link

DeN-AlB commented Sep 17, 2022

The issue is still not fixed on my side. Just installed Ferdium and added WhatsApp. On every start, the message appears that there is an update for WhatsApp available. :(


Version: 6.1.0
Server: Ferdium Server
Electron: 20.1.0
Chrome: 104.0.5112.102
Node.js: 16.15.0
Platform: Windows 11
Arch: x64
Build date: Sat Aug 27 2022 01:40:44 GMT+0200 (Mitteleuropäische Sommerzeit)
Git SHA: 117ea8b
Git branch: release

@vraravam
Copy link
Contributor

Please do not continue to post messages on this topic. The "Update available" as per the attached screenshots is something that WA is triggering from the server-side. we will not be able to patch that at all. The only mechanism that might sort of fix the problem (albeit temporarily) will be the play around with the user-agent - try for the Chrome browser in your OS, since most websites seem to optimize for Chrome.

@DeN-AlB
Copy link

DeN-AlB commented Sep 23, 2022

I'm using Franz in parallel, and I'm wondering that in Franz these Updates are not available. Just updated to Ferdium 6.2.0 and the "Update available" message is back again on every start. Just wanted to mention this ...

@francwalter
Copy link

francwalter commented Mar 21, 2023

I tried user-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 13_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
on my Mac with 10.15.7. The message is still there. It disappears if I click to Update, but it doesnt update, which is clear.

I had this issue on Hamsket too, but there it was not possible to even temporarily get rid of it. But Hamsket is out of development since a while and I guess it is also relevant which electron version is inside.

I wonder why it is not possible to get rid of it with some user.css or user.js, could catch it with some (DOM) search for the content "Update available" or "Update verfügbar" in german:

grafik

It is not possible for the user, because I cannot use Dev.Tools inside the webview element, need to be done by app-devs.

It is not a big deal, when it disappears at least temporarily, but if it is alway there it is annoying because it uses important space there.

EDIT: I was wrong, I can indeed look into the code of the webview, with the Service Developer Tools (in View menu).
So I found the chat-butterbar as the culprit, I try now to displaynone it with that code in my user.js:

module.exports = (config, Ferdium) => {
  // Write your scripts here
  // 2023-03-25: warten bis Seite fertig geladen ist...
  window.addEventListener("load", (event) => {
    try{
      hideUpdateMessage();
    } 
    catch(e) {
    // nothing to do
    }  
  });  
  // zur Sicherheit noch mal mit Interval (delay in ms)
  var delay = 60000;
  setInterval(hideUpdateMessage, delay);
  function hideUpdateMessage() {
    try{
      document.querySelectorAll('[data-testid="chat-butterbar"]')[0].style.display = "none";
    } 
    catch(e) {
    // nothing to do
    }
  }
};

Dont know if that works though, as the Nag-message comes and goes (with every reload).
Posted the same code also here: Update available - get CSS or TagName of DIV but I guess here is the better spot, also the dark-whatsapp repo is a bit silent 😏

EDIT 2023-03-27: ok this seems to work with setInterval and hide the chat-butterbar 😄
Since I done it this way, no more Update available (visible). Hope it stays this way...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants