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

Add a test verifying messageIsMediaProtection #545

Merged
merged 5 commits into from
Oct 10, 2024

Conversation

H-Shay
Copy link
Contributor

@H-Shay H-Shay commented Oct 10, 2024

Fixes #148

@H-Shay H-Shay marked this pull request as draft October 10, 2024 02:52
@H-Shay H-Shay requested a review from turt2live October 10, 2024 04:53
@H-Shay H-Shay marked this pull request as ready for review October 10, 2024 04:53
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!

Copy link
Member

Choose a reason for hiding this comment

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

Tests should also have the copyright header. (and we should probably go back and fix the other tests one day)

let content = { msgtype: "m.image", body: "test.jpeg", url: mxc };
let imageMessage = await client.sendMessage(testRoom, content);

let formatted_body = `<img src=${mxc} />`;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
let formatted_body = `<img src=${mxc} />`;
let formatted_body = `<img src="${mxc}" />`;

@H-Shay H-Shay merged commit 0019aad into main Oct 10, 2024
5 checks passed
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.

ability to autoredact all new images in x room for the next n minutes
2 participants