fix(audioPlaybackSpeed): make compatible with VoiceDownload

This commit is contained in:
Nico 2024-06-01 17:14:38 +02:00 committed by GitHub
parent 28767d97f4
commit 5347356634
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ export default definePlugin({
{
find: "ComponentActions.VOICE_MESSAGE_PLAYBACK_STARTED",
replacement: {
match: /useCallback\(\(\)=>\{let \i=(\i).current;.{2300,2800}onVolumeShow:\i,onVolumeHide:\i\}\)/,
match: /useCallback\(\(\)=>\{let \i=(\i).current;.{2300,3000}onVolumeShow:\i,onVolumeHide:\i\}\)/,
replace: "$&,$self.playbackSpeedComponent($1)"
}
},