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

Improve file cell height calculation #1448

Merged
merged 2 commits into from
Dec 27, 2023

Conversation

SystemKeeper
Copy link
Collaborator

Corresponding server PR:

When the photos app is enabled on the server (read: does not work on sermo), it determines the width and height of an image and stores these informations as metadata. When available we get these information in the file parameter array and can calculate the size of the preview, before even requesting it. This allows us to correctly size the FileMessageTableViewCell upfront and avoid jumping.

Additionally this PR does not use a placeholder image anymore, but instead uses a activity indicator while we load a preview.

Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
@SystemKeeper SystemKeeper requested a review from Ivansss December 9, 2023 15:39
@Ivansss Ivansss merged commit b288ff7 into master Dec 27, 2023
7 checks passed
@Ivansss Ivansss deleted the improve-file-cell-height-calculation branch December 27, 2023 17:02
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