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
set dispatcher ref to null so we don't double-unregister
This commit is contained in:
@@ -152,7 +152,10 @@ export default class CallHandler {
|
|||||||
if (cli) {
|
if (cli) {
|
||||||
cli.removeListener('Call.incoming', this.onCallIncoming);
|
cli.removeListener('Call.incoming', this.onCallIncoming);
|
||||||
}
|
}
|
||||||
if (this.dispatcherRef !== null) dis.unregister(this.dispatcherRef);
|
if (this.dispatcherRef !== null) {
|
||||||
|
dis.unregister(this.dispatcherRef);
|
||||||
|
this.dispatcherRef = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private onCallIncoming = (call) => {
|
private onCallIncoming = (call) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user