Update src/components/views/messages/MVoiceMessageBody.tsx
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
parent
a4907f8061
commit
a65299d8be
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue