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

web/composer: send inline URL previews #563

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sumnerevans
Copy link
Contributor

@sumnerevans sumnerevans commented Dec 22, 2024

Things to do:

  • Prevent sending when preview is being loaded
  • Send updated preview on edit
  • Show loading as soon as a URL appears, rather than waiting for the debounce. But wait for 500ms to make the request to get the preview

Closes #479

image

image

image

image

Signed-off-by: Sumner Evans [email protected]

web/src/ui/composer/MessageComposer.tsx Outdated Show resolved Hide resolved
web/src/ui/composer/MessageComposer.tsx Outdated Show resolved Hide resolved
@sumnerevans sumnerevans force-pushed the send-msc4095-url-previews branch 3 times, most recently from 75d7cab to 6612b54 Compare December 29, 2024 22:09
@sumnerevans sumnerevans force-pushed the send-msc4095-url-previews branch 4 times, most recently from b4656bf to 0ffebd8 Compare January 6, 2025 15:50
@everypizza1
Copy link
Contributor

Seems to work fine, except a new preview isn't sent when editing a message it seems.

@sumnerevans sumnerevans force-pushed the send-msc4095-url-previews branch 2 times, most recently from 26019d3 to 5d5c524 Compare January 17, 2025 00:37
@sumnerevans
Copy link
Contributor Author

As is, this has an issue where if you have a URL in the composer, and then continue typing, you have a 500ms delay until you can send, even if the preview for that URL has already been gotten. I'm not really sure how to get around this.

@sumnerevans sumnerevans force-pushed the send-msc4095-url-previews branch from 9761421 to 0b3d514 Compare January 31, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement MSC4095 link previews
3 participants