fix(screenshare): size dispatch fails due to wrong scope

This commit is contained in:
prlanzarin 2023-05-24 12:05:28 -03:00
parent f86f6fd756
commit b40a88cf69

View File

@ -101,9 +101,10 @@ class ScreenshareComponent extends React.Component {
this.onSwitched = this.onSwitched.bind(this);
this.handleOnVolumeChanged = this.handleOnVolumeChanged.bind(this);
this.handleOnMuted = this.handleOnMuted.bind(this);
this.dispatchScreenShareSize = this.dispatchScreenShareSize.bind(this);
this.debouncedDispatchScreenShareSize = debounce(
{ delay: SCREEN_SIZE_DISPATCH_INTERVAL },
this.dispatchScreenShareSize
this.dispatchScreenShareSize,
);
this.volume = getVolume();
this.mobileHoverSetTimeout = null;