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 4 commits 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.

We already are setting the button to disabled, but you can also invoke
onClickSend by pressing "Enter". See
https://github.com/tulir/gomuks/blob/b01b3f0e32d354c45df4159da05f3bb4ca029d61/web/src/ui/composer/MessageComposer.tsx#L615

Signed-off-by: Sumner Evans <[email protected]>
@sumnerevans sumnerevans force-pushed the send-msc4095-url-previews branch from 0ffebd8 to 26019d3 Compare January 17, 2025 00:28
@sumnerevans sumnerevans force-pushed the send-msc4095-url-previews branch from 26019d3 to 5d5c524 Compare January 17, 2025 00:37
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