Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix paste image to upload #4674

Merged
merged 2 commits into from
Jun 1, 2020
Merged

Fix paste image to upload #4674

merged 2 commits into from
Jun 1, 2020

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jun 1, 2020

Fixes element-hq/element-web#9852
Fixes element-hq/element-web#10795

We didn't prevent paste from pasting text even if we handled it as an image. We also used a react event handler for one and a dom one for the other.
Between paste and the modal showing up we queried the server for its media limits which is sometimes slow and users may try to paste again, now we instantly show a spinner modal briefly to prevent this.

I was able to reproduce both issues

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
@t3chguy t3chguy requested a review from a team June 1, 2020 14:03
src/ContentMessages.tsx Outdated Show resolved Hide resolved
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks :)

@t3chguy t3chguy merged commit 6ed3349 into develop Jun 1, 2020
@t3chguy t3chguy deleted the t3chguy/upload-tweaks branch June 1, 2020 16:27
Palid pushed a commit that referenced this pull request Nov 25, 2021
Palid pushed a commit that referenced this pull request Nov 25, 2021
dbkr pushed a commit that referenced this pull request Nov 30, 2021
* Fix links being parsed as markdown links improperly

Fixes #4674

* Fix a typo

* Fix overriding too much stuff

* Fix parsing

* Remove useless console.log

* Remove unnecessary emph function

* Properly fix tests

* Add some better docs

* Add missing license header
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New composer: pasting images is a bit buggy Sending image from clipboard can queue it twice
2 participants