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

feat(timeline): allow sending mentions along with media #4475

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

frebib
Copy link
Contributor

@frebib frebib commented Jan 8, 2025

Since 8205da8 it has been possible to attach (intentional) mentions to edited media captions, but the send_${mediatype}() timeline APIs provided no way to send them with the initial event. This fixes that.

  • Public API changes documented in changelogs (optional)

image

If I missed something, or completely got the wrong end of the stick, feel free to decline this or point me in the right direction. I'm not familiar with Rust, but this at least compiles and doesn't crash EXA on my phone.

@frebib frebib requested a review from a team as a code owner January 8, 2025 00:08
@frebib frebib requested review from andybalaam and removed request for a team January 8, 2025 00:08
Since 8205da8 it has been possible to
attach (intentional) mentions to _edited_ media captions, but the
send_$mediatype() timeline APIs provided no way to send them with the
initial event. This fixes that.

Signed-off-by: Joe Groocock <me@frebib.net>
@frebib frebib force-pushed the frebib/mention-media-caption branch from d12ce97 to 595e8a4 Compare January 8, 2025 00:14
@jplatte
Copy link
Collaborator

jplatte commented Jan 8, 2025

Hey, it looks like you deleted the sign-off part of the PR template. Pretty sure that's required (see https://github.com/matrix-org/matrix-rust-sdk/blob/main/CONTRIBUTING.md#sign-off)

@frebib
Copy link
Contributor Author

frebib commented Jan 8, 2025

My commit already contains a --signoff. If there's a DCO/CLA or something to sign, I can do that too

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.08%. Comparing base (2ef14de) to head (595e8a4).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4475      +/-   ##
==========================================
- Coverage   85.09%   85.08%   -0.01%     
==========================================
  Files         283      283              
  Lines       31778    31778              
==========================================
- Hits        27041    27038       -3     
- Misses       4737     4740       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bnjbvr bnjbvr requested review from bnjbvr and removed request for andybalaam January 8, 2025 09:21
Copy link
Member

@bnjbvr bnjbvr left a comment

Choose a reason for hiding this comment

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

Woohoo, thanks a bunch for your contribution 💚

@bnjbvr bnjbvr enabled auto-merge (rebase) January 8, 2025 09:43
@bnjbvr bnjbvr merged commit 3f977b7 into matrix-org:main Jan 8, 2025
40 checks passed
@frebib frebib deleted the frebib/mention-media-caption branch January 10, 2025 08:52
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.

3 participants