Skip to content

Conversation

nOw-Ay
Copy link

@nOw-Ay nOw-Ay commented Sep 12, 2025

This PR updates matrix.to to use the default avatar placeholder when media authentication is not supported.

Currently, matrix.to attempts to load user avatars from authenticated media endpoints it cannot access. As a result, it displays broken or unreachable images, which negatively affects the user experience (see #351)

Changes:

  • Added an onerror handler to the avatar image in LoadedPreviewView (src/preview/PreviewView.js) so that if the image fails to load, it is replaced with a default avatar element.

This ensures the UI remains clean and consistent, even when avatar images are unavailable.

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