]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix new accent color not refreshing when changing thumbnail for audio uploads
authorThibG <thib@sitedethib.com>
Wed, 8 Jul 2020 12:54:47 +0000 (14:54 +0200)
committerThibaut Girka <thib@sitedethib.com>
Wed, 8 Jul 2020 13:26:28 +0000 (15:26 +0200)
Port 0d2135a46172fd6931f757ef083ad99f4522081d to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
app/javascript/flavours/glitch/features/audio/index.js

index 181d8e980df5656bf3510e0757bd4cfbc169fd27..d833e0fe93058d32cc96ab7d894cb5c8401cdc4f 100644 (file)
@@ -102,7 +102,7 @@ class Audio extends React.PureComponent {
   }
 
   componentDidUpdate (prevProps, prevState) {
-    if (prevProps.src !== this.props.src || this.state.width !== prevState.width || this.state.height !== prevState.height) {
+    if (prevProps.src !== this.props.src || this.state.width !== prevState.width || this.state.height !== prevState.height || prevProps.accentColor !== this.props.accentColor) {
       this._clear();
       this._draw();
     }