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): mark media events as editable #4303

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

pixlwave
Copy link
Member

@pixlwave pixlwave commented Nov 20, 2024

This PR makes audio, file, image and video messages be editable so that the timeline signals when it is possible to use #4277/#4300 for editing captions.

@pixlwave pixlwave requested a review from bnjbvr November 20, 2024 17:11
@pixlwave pixlwave requested a review from a team as a code owner November 20, 2024 17:11
Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.08%. Comparing base (e5ca44b) to head (18feb63).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4303      +/-   ##
==========================================
- Coverage   85.09%   85.08%   -0.02%     
==========================================
  Files         274      274              
  Lines       30183    30184       +1     
==========================================
- Hits        25684    25681       -3     
- Misses       4499     4503       +4     

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


🚨 Try these New Features:

| MessageType::File(_)
| MessageType::Image(_)
| MessageType::Video(_)
)
Copy link
Contributor

Choose a reason for hiding this comment

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

I see a bit below a function is_highlighted. I am curious, are you using it on iOS?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can't find anything - I don't think it has been exposed over the FFI even if we wanted to (but presumably we're happy with the pill colour to highlight a message?).

@bnjbvr bnjbvr changed the title Fix: Allow items with media to be edited. feat(timeline): mark media events as editable Nov 21, 2024
@bnjbvr bnjbvr merged commit bf86b16 into main Nov 21, 2024
40 checks passed
@bnjbvr bnjbvr deleted the doug/editable-media-types branch November 21, 2024 09:25
bmarty added a commit to element-hq/element-x-android that referenced this pull request Nov 21, 2024
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