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

Commit 32e9880

Browse files
committed
Fix for unencrypted rooms too
1 parent 7f6e5ca commit 32e9880

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/components/views/messages/MImageBody.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,9 @@ export default class MImageBody extends React.Component<IBodyProps, IState> {
289289

290290
await loadPromise;
291291

292-
// Rudimentary validation for whether it is animated, only in encrypted rooms where we have the blob
293-
if (this.props.mediaEventHelper.media.isEncrypted) {
294-
const blob = await this.props.mediaEventHelper.sourceBlob.value;
295-
if (!await blobIsAnimated(content.info.mimetype, blob)) {
296-
isAnimated = false;
297-
}
292+
const blob = await this.props.mediaEventHelper.sourceBlob.value;
293+
if (!await blobIsAnimated(content.info.mimetype, blob)) {
294+
isAnimated = false;
298295
}
299296

300297
if (isAnimated) {

0 commit comments

Comments
 (0)