Update src/components/views/messages/MVoiceMessageBody.tsx

Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
pull/21833/head
Jaiwanth 2021-05-26 13:07:57 +05:30 committed by GitHub
parent a4907f8061
commit a65299d8be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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() {