platform icon indicating copy to clipboard operation
platform copied to clipboard

Link preview is not added a second time

Open AbigailDawson opened this issue 1 year ago • 6 comments

When adding a link back to a message after deleting it, the link preview is not added the second time.

Steps to reproduce:

  1. Paste a URL into a message (don’t send)
  2. Wait for attachment to load
  3. Delete the URL
  4. Paste the same URL into the message again

Expected: Link preview / attachment loads again

Actual: Link preview / attachment does not load the 2nd time

AbigailDawson avatar Jan 20 '25 11:01 AbigailDawson

Connected to Huly®: UBERF-9193

huly-github-staging avatar Jan 20 '25 11:01 huly-github-staging

This one is an interesting problem because if the user decides not to attach this specific link, we should not append it after he adds something to the message.

The Telegram app is doing the same behavior as we do in the current version.

Also, as I can see, the Slack app counts links; e.g., I add a link preview for some site and decide to delete it, and then when and only when I add it the second time, it can be attached.

The question is which behaviour is more UX Telegram or Slack?

Abigail DawsonPlease share your thoughts.

denis-tingaikin avatar Jan 24 '25 11:01 denis-tingaikin

Denis Tingaikin I just checked - for the behavior I’m referring to, Slack and Telegram behave the same way, and the behavior in Huly is different from both.

  1. Slack & Telegram:
    1. add a link (preview attaches)
    2. delete the link (preview unattaches)
    3. add the same link back (preview attaches again)
  2. Huly:
    1. add a link (preview attaches)
    2. delete the link (preview remains, and can even be sent with no link in the message body)
    3. delete the preview
    4. add the same link back (preview does not attach again)

AbigailDawson avatar Jan 24 '25 11:01 AbigailDawson

ah I see, it’s a bit of another case (this one is clear and will be considered).

Above I mean a bit of another problem, say you just remove the link preview by clicking on ‘x’ / ‘delete’ and then the telegram app will not add a link preview again, the slack app could add it in some cases.

denis-tingaikin avatar Jan 24 '25 11:01 denis-tingaikin

Yeah, Slack is kind of annoying because it will add the preview back as you’re typing your message, even in you’ve already clicked X on the preview. Telegram seems to not add it back as you’re typing, but it seems for both Slack & Telegram when you click X on the preview, then delete the actual link itself, if you add the link back it will add the link preview back. In Huly however, if you click X on the preview and then delete the link, it won’t ever add the link preview back again. I think Slack & Telegram have the expected behavior in this regard

AbigailDawson avatar Jan 24 '25 11:01 AbigailDawson

@AbigailDawson I tried to reproduce this on a current Platform-Collective build, but no link preview appeared even on the first paste in our setup, since previews depend on a link-preview service fetching external pages, so I could not judge the second paste. Does it still happen on a current version? Where did you paste the URL (chat message, issue comment)? Which URL did you use, and does it happen with any URL?

MichaelUray avatar Oct 20 '26 23:10 MichaelUray