-
-
Notifications
You must be signed in to change notification settings - Fork 55
Whatsapp update available #75
Comments
I haven't been able to reproduce this, WhatsApp Web says it's version 0.3.1846. |
Maybe it is because of two accounts logged in simultaneously. I have the same version as you. Before update it is same version as after update. |
I've been having that messages on and off for months, just click it and refresh to make it go away temporarily. |
same here |
Yes, I know, that you just click, but you do not want to do it almost every start of Rambox (for me twice). |
Don't suppose this is fixed on If WhatsApp is freaking out on their end because someone's using multiple WhatsApp accounts, I'm not sure what can be done. None of the storage is shared, the tabs can't communicate with each other, so it's entirely on their end. I don't seem to've asked before, but does this occur at all on other apps, on Android with features like dual messenger or sandboxing? Maybe I'm overthinking it and there'd be some way to simply block the notice, since if you're on the web version, presumably there isn't an update unless you've been running a single session forever. |
On Android I do not have any problems with dual Whatsapp. Normally working as expected. As you said, it could be WhatsApp-side problem, but right now I have tried Rambox CE and this issue does not occured. |
I've pushed a commit to This could possibly affect #31 too, so I'd like testing on WhatsApp to make sure it doesn't regress as well as to see if it fixes this. I'll test as much as I can, but for some reason I wasn't getting hit with these issues in the first place. |
If you want to confirm quickly whether it could be a fix for any WhatsApp issues, you could add something like
to the override of setTimeout. If that's never logged, there's no chance that fix will change anything for WhatsApp. |
Also a good thing to think of. |
I have tried build 204 - e311167 with same bad result:-(. I have noticed, that second whatsapp account is loading slower than the first one and it does not matter on tab order. Issues does not occur if I put Whatsapp accounts as 1st and 2nd tab. 1st an 3rd sometimes for the second account. With Rambox CE it is working as 1st and 5th tab. It seems to me that it has something to do with duration of loggin in. |
Just FYI, happens for me with just a single Whatsapp account (I do have 3 other messengers however). Macbook Pro Mid'14 with lots of things running, so not the fastest machine. |
Now I am running WA and WA Bussiness account with same behaviour. I do not think that this is CPU power related. I am using it on i7 7700HQ with 16GB RAM and NVMe SSD. |
Since this appears to affect everyone but me, use the developer tools and see if you can come up with a simple JS or CSS to hide the update notification and I'll see if I can include it. |
Just tried to have a look in your preview build, but that doesn't really work for me. I guess it clashes with the "old" Rambox version (there were also some exceptions in the dev console). |
I don't use the upstream version of Rambox, no. If anyone wants this fixed for 0.5.18, which is ready-ish now except for this and #93, I'm going to need a lot more to go on than I have now. Old data in the WhatsApp container will likely cause false-positives of problems, as stated many times. This is due to the design of WhatsApp. Other webapps tend to handle this situation themselves. Containers/tabs can't talk with each other, so I'm not sure how two accounts could cause this, nor could I likely make two accounts myself. Opening the same account with two instances of WhatsApp Web for the same account definitely doesn't cause this for me. WhatsApp has always been screwy with electron-based apps, and has been totally unresponsive to bug reports or requests of any kind in the last year. |
This should be resolved in 4aab913. If it's not, let me know and I can add a version override. I'd prefer not to have to do that, of course, given that all of this is WhatsApp's fault for using bad User Agent string sniffing instead of feature detection. |
It doesn't seem to be solved for me. |
As far as I can tell, it sometimes says this because it thinks that the version of Chrome in-use is too old, instead of letting Google handle Chrome updates. Since it's a redundant warning, and electron doesn't update as fast as WhatsApp likes, the best way to handle this would probably be to simply suppress that particular warning by default, but as it simply refuses(!) to pop up for me, I can't isolate the elements necessary to cleanly block it by default (without blocking anything else) using the CSS or JS as appropriate. I used to block the useless "helper bar" at the bottom of Skype for the same reason because it simply wastes a fair amount of vertical space for no benefit, but they changed how things are arranged and there's nothing unique about it to block. Lying about the version would require constant maintenance and they would possibly try to invoke features that the Electron version of Chromium simply doesn't have, since WhatsApp parses user agents instead of using proper feature detection, and totally ignores all reports sent to them, no matter the severity. |
The Let me know if you find any problems with electron 5 because it'll probably become the default if there aren't more wrinkles to iron out. |
Confirmed, no more update nagging on |
I have tried on latest master (d42dc5c) also with Chrome v73, but still appears. It is appearing a lot less, but still appears (1 in 10 maybe). |
This problem is back:-( Even with the lates Hamsket version 9cc1a71 |
This is surreal. Chrome 76 is the latest release version (and as usual, I can't replicate). I think the problem is...we have no idea what WhatsApp is actually demanding here. They're totally opaque about it, and refuse to answer any support tickets. |
I think, that problems is in two Whatsapp (I am using Whatsapp and Whatsapp Bussiness) account signing in simultaneously. Is any possibility how to delay singing in for one account? |
I found a workaround: |
@YerayAlonso Mind if I add that to official? |
I have it too, sometimes more often, sometimes not at all for a while, at the moment with my Windows 10 tablet and latest Hamsket nightly (though I think it is unrelated with Hamsket). I will live with this notification and will ignore it.
This works neither, I put it in Custom JS part of the WA-service-settings. But anyway, if I try the developer tools and click the inspector (CTRL+SHIFT+C) the part with the "Update available" is not selectable and all the contacts neither, all the WA frame is not available for me, I dont know how to get grip of it.
I dont know how to find it 😢 |
I think it is related to that Beta, quite new now, must have some totally different CSS-Classes. That "_3O0po" Class is not in use obviously, that trick from YerayAlonso doesnt work anymore.
But this affects only all the Hamsket Window around the WA-content. No way to get to that. If I only knew how to find the actual class or ID of that damned element with that damned "Update available". |
With that piece of code, the span element which contains the 'Update available' message can be removed. (() => { A better solution would be to have some kind of event handler instead of a timeout, which check's whether the page has been loaded. Since I'm not a JS expert, I don't know how to do it. |
The class its undefined and when I try to set the display of that element to none it is hence an error: I cant get grip of the inner of the WhatsApp code, it is just a webview, where I cannot enter with the Developer Tools:
|
I had this issue again on Ubuntu and Hamsket 0.6.5 (6e2..., last nightly ever from 6. Aug. 2022) and still it is not possible to get any ID or class of this element with "Update available", because it is in the webview element, where I cannot get into with the Dev. Tools. So my way to get temporarily rid of the message, which takes the most important space (the top of my contact's chats) is still to refresh, often several times. Then it is gone for a while. I still hope that one day anybody could tell me, how to scrutinize that fu...ng element with Web dev. Tools, get into that Webview element in Hamsket, but I think it is just not possible. |
At least I found a way in Ferdium, see my issue and own answer here: Update available - get CSS or TagName of DIV If my code with the chat-butterbar works a while: |
@francwalter i found out again how to open the dev tools for a service, not for the whole hamsket interface, right-click on the With this, the message can be hidden with one of the following ways: document.querySelector('span[data-testid="alert-update"]').parentElement.parentElement.parentElement.parentElement.style.display = "none"
// or
document.querySelector('span[data-testid="alert-update"]').parentElement.parentElement.parentElement.style.display = "none"
// or as mentioned before
document.querySelector('span[data-testid="chat-butterbar"]').style.display = "none" To reliably hide the message i inject the following javascript: const interval = setInterval(hideUpdateMessage, 1000);
function hideUpdateMessage() {
const updateMessage = document.querySelector('span[data-testid="chat-butterbar"]');
if (updateMessage !== undefined) {
updateMessage.style.display = "none";
clearInterval(interval);
};
}; |
Yes, this works since a while, got rid of that annoying update butter bar. |
Steps to reproduce
Expected behavior
Once click to update Whatsapp.
Actual behavior
Nearly every restart of Rambox you have to update Whatsapp. (not everytime, but 75%)
I am using two Whatsapp account.
I thinks it is starts to appeared after correcting the Issue #72
ENVIRONMENT
The text was updated successfully, but these errors were encountered: