From: ThibG Date: Mon, 15 Jun 2020 14:43:30 +0000 (+0200) Subject: [Glitch] Fix initial audio volume not corresponding to what's displayed X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=65a9b788fc4fc9cf57cee8e8a7cae5dca8f97a5e;p=mastodon.git [Glitch] Fix initial audio volume not corresponding to what's displayed Port 755e8c76ab28a99905c66082757d892939e70c49 to glitch-soc Signed-off-by: Thibaut Girka --- diff --git a/app/javascript/flavours/glitch/features/audio/index.js b/app/javascript/flavours/glitch/features/audio/index.js index 49e91227f..ba3534492 100644 --- a/app/javascript/flavours/glitch/features/audio/index.js +++ b/app/javascript/flavours/glitch/features/audio/index.js @@ -125,6 +125,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; }