fix(mediaPlaybackSpeed): improve patch

This commit is contained in:
D3SOX 2024-06-06 11:53:49 +02:00
parent b24c50d213
commit a8eea4dc7a
No known key found for this signature in database
GPG key ID: 39EC1673FC37B048

View file

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