-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
base: develop
Are you sure you want to change the base?
Conversation
@@ -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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully vastly improved.
(Converting to draft until I have dealt with failing tests) |
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
public
/exported
symbols have accurate TSDoc documentation.