mirror of https://github.com/vector-im/riot-web
Update src/components/views/messages/MVoiceMessageBody.tsx
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>pull/21833/head
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…
Reference in New Issue