fix(screenshare): properly gate autopin behavior behind flag check

This commit is contained in:
Leonard Kim 2019-04-11 08:57:44 -07:00 committed by bbaldino
parent 76642b7c4b
commit c34f9cf233
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ StateListenerRegistry.register(
/* selector */ state => state['features/base/tracks'], /* selector */ state => state['features/base/tracks'],
/* listener */ (tracks, store) => { /* listener */ (tracks, store) => {
if (typeof interfaceConfig !== 'object' if (typeof interfaceConfig !== 'object'
&& !interfaceConfig.AUTO_PIN_LATEST_SCREEN_SHARE) { || !interfaceConfig.AUTO_PIN_LATEST_SCREEN_SHARE) {
return; return;
} }