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

Commit

Permalink
Add try-catch around blurhash loading (#8830)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Jun 13, 2022
1 parent 57dff81 commit f10d35c
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit f10d35c

Please sign in to comment.