mimbrero / whatsapp-desktop-linux

Unofficial WhatsApp Linux client built with Electron.
https://flathub.org/apps/details/io.github.mimbrero.WhatsAppDesktop
MIT License
78 stars 20 forks source link

Preview for links not being generated #31

Closed EkanshdeepGupta closed 1 year ago

EkanshdeepGupta commented 2 years ago

Description When sending a message containing a link, the preview generated for the link does not fetch any details about the linked webpage. When pasting a link in a chat from a phone or web.whatsapp.com, WhatsApp generates a preview for the url including a title and thumbnail. However, for links sent via whatsapp-desktop-linux, the preview only contains the url.

To Reproduce Steps to reproduce the behavior:

  1. Go to any chat.
  2. Copy a link to a website in the chat
  3. Wait a couple of seconds for the preview to be generated
  4. The preview merely has the URL, not the title or thumbnail.

Expected behavior The generated preview should have the title and thumbnail.

Screenshots Preview generated by whatsapp-desktop-linux: Screenshot from 2022-07-03 18-25-17

Preview generated by WhatsApp on phone: Screenshot from 2022-07-03 18-25-40

Environment

vivantart commented 1 year ago

Yes. I was about to open an issue too. +1 here.

mimbrero commented 1 year ago

Hello, thanks for reporting :)

I think that this is an issue with the official WhatsApp web client, so I cannot do anything to solve this :(

But just to be sure, can you test this in web.whatsapp.com to check if this happens? Thanks :)

vivantart commented 1 year ago

Hello, thanks for reporting :)

I think that this is an issue with the official WhatsApp web client, so I cannot do anything to solve this :(

But just to be sure, can you test this in web.whatsapp.com to check if this happens? Thanks :)

Yes, you're right. There was an article in Whatsapp FAQ mentioning about "unsupported features", and "link preview" was on the list. It's some limitation related to web API for now and seems that there is nothing devs can do about.

vivantart commented 1 year ago

https://faq.whatsapp.com/367577238567451/?helpref=uf_share

As you can see...

"We’re also aware that users are missing some features including link previews on WhatsApp Web, viewing live location on linked devices, better synching of deleted chats across devices, broadcast lists, sending and receiving messages to your own number, and syncing sticker packs from your phone to your linked device. We're working hard to reinstate as many of these as possible."

EkanshdeepGupta commented 1 year ago

Yes, you're right. I cannot understand why such a basic feature is not supported across the board by WhatsApp. Sorry for raising a spurious issue. I should have checked before, but I assumed since it's working on WhatsApp desktop apps it must also work on WhatsApp web.