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(media): replace MediaThumbnailSettings default ctor with reasonable defaults #4225

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Nov 6, 2024

This new ctor is used when caching a thumbnail everywhere, and when
attempting to retrieve it; it gives us a single place where to
coordinate the default MediaThumbnailSettings parameters.

@bnjbvr bnjbvr requested a review from a team as a code owner November 6, 2024 14:43
@bnjbvr bnjbvr requested review from poljar and removed request for a team November 6, 2024 14:43
Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.84%. Comparing base (8d07f36) to head (ea8745d).
Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4225   +/-   ##
=======================================
  Coverage   84.83%   84.84%           
=======================================
  Files         273      273           
  Lines       29519    29519           
=======================================
+ Hits        25042    25044    +2     
+ Misses       4477     4475    -2     

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

Comment on lines 77 to 78
"mxc://send-queue.localhost/{}",
txn_id
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"mxc://send-queue.localhost/{}",
txn_id
"mxc://send-queue.localhost/{txn_id}",

…only taking a width and height

This one is used when caching a thumbnail everywhere, and when
attempting to retrieve it; it gives us a single place where to
coordinate the default `MediaThumbnailSettings` parameters.
@bnjbvr bnjbvr force-pushed the bnjbvr/reasonable-media-request-default branch from 2be9622 to ea8745d Compare November 7, 2024 11:48
@bnjbvr bnjbvr enabled auto-merge (rebase) November 7, 2024 11:48
@bnjbvr bnjbvr merged commit 237419c into main Nov 7, 2024
40 checks passed
@bnjbvr bnjbvr deleted the bnjbvr/reasonable-media-request-default branch November 7, 2024 12:04
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.

2 participants