fix(desktop-picker): Populate list of desktop app windows to share

Fix bug introduced via #12994 where id was changed and "-tab" was appended. Due to this the selected tab was not anymore working and empty object was returned here: 05da37b56d/react/features/desktop-picker/components/DesktopPicker.tsx (L270)

Originally part of #13096 by @dudumanbogdan, but pulled ahead to fix application
window sharing via Electron desktop app.

Fixes: jitsi/jitsi-meet-electron#857
pull/13214/head jitsi-meet_8552
Christoph Settgast 2 years ago committed by Дамян Минков
parent 035cccb97b
commit 1a22b7d0dd
  1. 4
      react/features/desktop-picker/components/DesktopPicker.tsx

@ -358,7 +358,7 @@ class DesktopPicker extends PureComponent<IProps, IState> {
type => {
return {
accessibilityLabel: t(TAB_LABELS[type as keyof typeof TAB_LABELS]),
id: `${type}-tab`,
id: `${type}`,
controlsId: `${type}-panel`,
label: t(TAB_LABELS[type as keyof typeof TAB_LABELS])
};
@ -369,7 +369,7 @@ class DesktopPicker extends PureComponent<IProps, IState> {
accessibilityLabel = { t('dialog.sharingTabs') }
className = 'desktop-picker-tabs-container'
onChange = { this._onTabSelected }
selected = { `${this.state.selectedTab}-tab` }
selected = { `${this.state.selectedTab}` }
tabs = { tabs } />);
}

Loading…
Cancel
Save