Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add try-catch around blurhash loading #8830

Merged
merged 1 commit into from
Jun 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/components/views/messages/MVideoBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ export default class MVideoBody extends React.PureComponent<IBodyProps, IState>
this.forceUpdate(); // we don't really have a reliable thing to update, so just update the whole thing
});

this.loadBlurhash();
try {
this.loadBlurhash();
} catch (e) {
logger.error("Failed to load blurhash", e);
}

if (this.props.mediaEventHelper.media.isEncrypted && this.state.decryptedUrl === null) {
try {
Expand Down