2 ms·
Somewhat related, every time I open the web client of WhatsApp I see the side widget animating through my history. What is going on here? As a programmer, this
by amelius 2y ago
Somewhat related, every time I open the web client of WhatsApp I see the side widget animating through my history. What is going on here? As a programmer, this looks like some very lazy work, but I wonder if there is more to it (?)
- nottorp 2y agoWhatsapp desktop/web is the epitome of laziness. When they switched to Electron or whatever it is they removed a ton of options, for example enlarging the font.
- ValentineC 2y agoTheir new macOS app is surprisingly pleasant to use, and much snappier in performance.
- nottorp 2y agoStill browser based and no enlarge font option. It obeys cmd +/- to adjust the font size but only for chat text, not for the chat list or the rest of the app.
- gorbypark 2y agoI’ve been using the beta version of WhatsApp on macOS for a year or so and it’s a native Catalyst app. I kinda assumed the main version had dropped electron and moved to the catalyst version too, has that not happened?
- skrebbel 2y agoWhatsApp uses your phone as the primary message store. Its architecture is more similar to SMS than to typical DB-driven client-server apps. Their servers are only designed to pass messages through, not persist them (they persist them only until they're delivered to all recipients, which usually is very short). This is an uncommon design these days, but it's also what's let them serve half the world with 5 backend engineers (!) back before Facebook/Meta bought them. It's also why, if you didn't make any backups, you lose your WhatsApp message history when you switch phones. So the web/desktop clients are thin clients over that store on your phone, which keep an eventually-consistent cache of the messages somewhere locally (indexeddb or something like that I bet). So if I'm not mistaken, when you open the web client, it connects to a WhatsApp relay server which wakes up the WhatsApp app on your phone, asks it for any new messages since last time it connected, and syncs them over. This is a fast but not instant process and what you're seeing is the UI realtime updating as the messages are being synced. The longer since you've had the web client open, the longer this takes. I'm not sure if it's deliberate but I can totally imagine it to be. It very clearly shows the syncing taking place. Personally, since I'm rather enamored by their design, I love seeing it play out in realtime. Note, I'm not 100% sure about any of the above, notably core aspects of the architecture might've changed since Meta took over.
- k8sToGo 2y agoIs this still the case? Afaik you can use web Whatsapp without phone now
- joseda-hg 2y agoPC is independent from phone now, but from observation, it seems like it picks a "main" device and syncs the other ones to that (Inconsistently, probably whichever you used latest) I can see how ocasionally I'll get a message way sooner on PC, respond, then pick my phone and that will "animate" messages in my phone, so it works both ways