]> cat aescling's git repositories - mastodon.git/commitdiff
Fix video player regressions introduced by blurhash merge
authorThibaut Girka <thib@sitedethib.com>
Sun, 26 May 2019 17:55:58 +0000 (19:55 +0200)
committerThibaut Girka <thib@sitedethib.com>
Mon, 27 May 2019 17:43:15 +0000 (19:43 +0200)
app/javascript/flavours/glitch/features/video/index.js

index 3dd296c3c1b167805872484a5b4d765c304fcac8..b73ea0b07bd6a846259c78a117efd486bb4a45fb 100644 (file)
@@ -306,9 +306,6 @@ export default class Video extends React.PureComponent {
     if (this.video && this.state.revealed && this.props.preventPlayback && !prevProps.preventPlayback) {
       this.video.pause();
     }
-  }
-
-  componentDidUpdate (prevProps) {
     if (prevProps.blurhash !== this.props.blurhash && this.props.blurhash) {
       this._decode();
     }