Skip to content

Fix link preview image fit; decouple image viewer from room media cache#974

Merged
kevinaboos merged 2 commits into
project-robius:mainfrom
kevinaboos:image_viewer_link_preview
Jul 22, 2026
Merged

Fix link preview image fit; decouple image viewer from room media cache#974
kevinaboos merged 2 commits into
project-robius:mainfrom
kevinaboos:image_viewer_link_preview

Conversation

@kevinaboos

Copy link
Copy Markdown
Member
  • The ImageViewer now directly handles fetching the full-size image instead of trying to route it through the room screen. So we basically rely on the matrix SDK's cache instead of our own.
  • Make a bit more effort to obtain a full-size image (esp for link previews) if the thumbnail isn't available on the homeserver.
  • Make sure link preview images are centered and fit within the image box

* The ImageViewer now directly handles fetching the full-size image
  instead of trying to route it through the room screen.
  So we basically rely on the matrix SDK's cache instead of our own.
* Make a bit more effort to obtain a full-size image (esp for link previews)
  if the thumbnail isn't available on the homeserver.
* Make sure link preview images are centered and fit within the image box
@kevinaboos
kevinaboos merged commit c4e9e10 into project-robius:main Jul 22, 2026
11 checks passed
@kevinaboos
kevinaboos deleted the image_viewer_link_preview branch July 22, 2026 23:36
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.

1 participant