]> cat aescling's git repositories - mastodon.git/commitdiff
Fix initial audio volume not corresponding to what's displayed (#14057)
authorThibG <thib@sitedethib.com>
Mon, 15 Jun 2020 14:43:30 +0000 (16:43 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Jun 2020 14:43:30 +0000 (16:43 +0200)
app/javascript/mastodon/features/audio/index.js

index 95c9c7751a0286c6bcde5bcfd09ab99c1ceb0c15..baad1c0e56e39de9ee9d19ca6c1689bc1fc16fe3 100644 (file)
@@ -128,6 +128,7 @@ class Audio extends React.PureComponent {
         this.wavesurfer.createPeakCache();
         this.wavesurfer.load(this.props.src);
         this.wavesurfer.toggleInteraction();
+        this.wavesurfer.setVolume(this.state.volume);
         this.loaded = true;
       }