You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Kill off _afterComponentWillUnmount
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -316,7 +316,6 @@ export default class MImageBody extends React.Component<IProps, IState> {
|
|||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
this.unmounted = true;
|
this.unmounted = true;
|
||||||
this.context.removeListener('sync', this.onClientSync);
|
this.context.removeListener('sync', this.onClientSync);
|
||||||
this._afterComponentWillUnmount();
|
|
||||||
|
|
||||||
if (this.state.decryptedUrl) {
|
if (this.state.decryptedUrl) {
|
||||||
URL.revokeObjectURL(this.state.decryptedUrl);
|
URL.revokeObjectURL(this.state.decryptedUrl);
|
||||||
@@ -326,11 +325,6 @@ export default class MImageBody extends React.Component<IProps, IState> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// To be overridden by subclasses (e.g. MStickerBody) for further
|
|
||||||
// cleanup after componentWillUnmount
|
|
||||||
_afterComponentWillUnmount() {
|
|
||||||
}
|
|
||||||
|
|
||||||
protected messageContent(
|
protected messageContent(
|
||||||
contentUrl: string,
|
contentUrl: string,
|
||||||
thumbUrl: string,
|
thumbUrl: string,
|
||||||
|
|||||||
Reference in New Issue
Block a user