1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

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

Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
This commit is contained in:
Jaiwanth
2021-05-26 13:07:57 +05:30
committed by GitHub
parent a4907f8061
commit a65299d8be

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