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

Check for image MIME data before HTML data #868

Merged
merged 1 commit into from
May 7, 2023

Conversation

chmeeedalf
Copy link
Contributor

Copying an image from Firefox attaches some HTML to the image. Extracting the plain text from the HTML before the image results in empty data in the field, with no image, triggering an assertion failure on message send.

This is a partial fix for issue #867. Partial, because the resulting image does not appear in the chat window until relaunching, due to an error opening the temp file created by this.

Copying an image from Firefox attaches some HTML to the image.
Extracting the plain text from the HTML before the image results in
empty data in the field, with no image, triggering an assertion failure
on message send.

This is a partial fix for issue quotient-im#867.  Partial, because the resulting
image does not appear in the chat window until relaunching, due to an
error opening the temp file created by this.
Copy link
Member

@KitsuneRal KitsuneRal left a comment

Choose a reason for hiding this comment

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

Thanks! Makes perfect sense.

@KitsuneRal KitsuneRal added the bug/fix Quaternion doesn't work as expected label May 6, 2023
@KitsuneRal KitsuneRal merged commit ebd4bbc into quotient-im:dev May 7, 2023
@KitsuneRal KitsuneRal linked an issue Jul 31, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/fix Quaternion doesn't work as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pasting an image from a browser to the chat window crashes on send
2 participants