mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-18 02:41:41 +02:00
Update src/components/views/messages/MVoiceMessageBody.tsx
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
parent
a4907f8061
commit
a65299d8be
@ -76,9 +76,7 @@ export default class MVoiceMessageBody extends React.PureComponent<IProps, IStat
|
||||
}
|
||||
|
||||
public componentWillUnmount() {
|
||||
if (this.state.playback) {
|
||||
this.state.playback.destroy();
|
||||
}
|
||||
this.state.playback?.destroy();
|
||||
}
|
||||
|
||||
public render() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user