Skip to content

Conversation

@jason-famedly
Copy link
Contributor

https://github.com/famedly/product-management/issues/3353

Allow two endpoints:

To have query parameter org.matrix.msc3911.attach_media (attach_media once stabilized) that accepts a list of mxc urls(both with and without the mxc:// scheme)

The mxc references should have been uploaded previously.

By passing these mxc references to these endpoints, an association between the event being created and the piece(s) of media will be formed. Restricting the media to be viewable based on event visibility criteria is a future work.

@jason-famedly jason-famedly marked this pull request as ready for review August 26, 2025 13:21
@jason-famedly jason-famedly requested a review from a team as a code owner August 26, 2025 13:21
Copy link
Member

@nico-famedly nico-famedly left a comment

Choose a reason for hiding this comment

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

Looks good in general, but I think we need to figure out the multiple events case as well as the potential persistence race.

Copy link
Member

@nico-famedly nico-famedly left a comment

Choose a reason for hiding this comment

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

Looks good to me in general, but could use some minor cleanups :)

@jason-famedly jason-famedly force-pushed the jason/msc3911-ap3-sending-events branch 2 times, most recently from cd18754 to a80fe44 Compare August 28, 2025 13:52
@jason-famedly
Copy link
Contributor Author

Had a MediaRepository handler method added that abstracted out retrieving the local media information object. Since that is not going to be available from the MediaRepository when that handler can not be initialized properly thanks to specialized configuration processing which disallows it, remove it and just using the database method directly will have to do.

As such, it has been reverted

@jason-famedly jason-famedly force-pushed the jason/msc3911-ap3-sending-events branch 4 times, most recently from b33bbda to 227e429 Compare September 2, 2025 15:27
@jason-famedly jason-famedly force-pushed the jason/msc3911-ap3-sending-events branch from 6d8d0e8 to 5529009 Compare September 3, 2025 11:06
@nico-famedly nico-famedly merged commit 0a0cf05 into msc3911 Sep 3, 2025
20 of 23 checks passed
@nico-famedly nico-famedly deleted the jason/msc3911-ap3-sending-events branch September 3, 2025 12:03
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.

4 participants