mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fixed render loop on voice notes draft
This commit is contained in:
@@ -137,9 +137,10 @@ function SizedWaveformScrubber({
|
||||
onScrub,
|
||||
width,
|
||||
}: SizedWaveformScrubberProps) {
|
||||
const handleCorrupted = () => {
|
||||
const handleCorrupted = useCallback(() => {
|
||||
log.warn('SizedWaveformScrubber: audio corrupted');
|
||||
};
|
||||
}, []);
|
||||
|
||||
const { peaks, duration } = useComputePeaks({
|
||||
audioUrl,
|
||||
activeDuration,
|
||||
|
||||
Reference in New Issue
Block a user