Skip to content

Never hide media from your own user #29797

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

Draft
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

Half-Shot
Copy link
Member

Small extension onto #29582

This ensures that media from your own userID is always shown, which prevents having to always click to show after uploading media. We trust media from our own user always.

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • I have licensed the changes to Element by completing the Contributor License Agreement (CLA)

@@ -19,14 +19,15 @@ const PRIVATE_JOIN_RULES: JoinRule[] = [JoinRule.Invite, JoinRule.Knock, JoinRul

/**
* Should the media event be visible in the client, or hidden.
* @param eventId The eventId of the media event.
Copy link
Member

Choose a reason for hiding this comment

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

Can we improve docs rather than make them worse? Notably would be good to document the behaviour if mxEvent === undefined

Copy link
Member Author

Choose a reason for hiding this comment

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

Hopefully vastly improved.

@Half-Shot Half-Shot marked this pull request as draft April 22, 2025 10:51
@Half-Shot
Copy link
Member Author

(Converting to draft until I have dealt with failing tests)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants