Add try-catch around blurhash loading (#8830)

t3chguy/dedup-icons-17oct
Michael Telatynski 2022-06-13 13:25:32 +01:00 committed by GitHub
parent 57dff8131c
commit f10d35cb18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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.forceUpdate(); // we don't really have a reliable thing to update, so just update the whole thing
}); });
try {
this.loadBlurhash(); this.loadBlurhash();
} catch (e) {
logger.error("Failed to load blurhash", e);
}
if (this.props.mediaEventHelper.media.isEncrypted && this.state.decryptedUrl === null) { if (this.props.mediaEventHelper.media.isEncrypted && this.state.decryptedUrl === null) {
try { try {