From 755e8c76ab28a99905c66082757d892939e70c49 Mon Sep 17 00:00:00 2001 From: ThibG Date: Mon, 15 Jun 2020 16:43:30 +0200 Subject: [PATCH] Fix initial audio volume not corresponding to what's displayed (#14057) --- app/javascript/mastodon/features/audio/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/mastodon/features/audio/index.js b/app/javascript/mastodon/features/audio/index.js index 95c9c7751..baad1c0e5 100644 --- a/app/javascript/mastodon/features/audio/index.js +++ b/app/javascript/mastodon/features/audio/index.js @@ -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; }