Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
gabiborlea committed Oct 19, 2023
1 parent 22ce5a5 commit a4013be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/API/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -993,12 +993,12 @@ function initCommands() {
callback(isP2pActive(APP.store.getState()));
break;
}
case '_is_electron_screensharing': {
case '_new_electron_screensharing_supported': {
callback(true);
break;
}
default:
callback(null);
callback({ error: new Error('UnknownRequestError') });

return false;
}
Expand Down
4 changes: 2 additions & 2 deletions modules/API/external/external_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1279,9 +1279,9 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
*
* @returns {Promise}
*/
_isElectronScreensharing() {
_isNewElectronScreensharingSupported() {
return this._transport.sendRequest({
name: '_is_electron_screensharing'
name: '_new_electron_screensharing_supported'
});
}

Expand Down
1 change: 1 addition & 0 deletions react/features/desktop-picker/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { ElectronWindowType } from './types';
export function obtainDesktopSources(options: { thumbnailSize?: Object; types: string[]; }) {
const { JitsiMeetElectron } = window as ElectronWindowType;

// TODO: delete this after 2 releases
if (JitsiMeetElectron?.obtainDesktopStreams) {
return new Promise((resolve, reject) => {
JitsiMeetElectron.obtainDesktopStreams(
Expand Down

0 comments on commit a4013be

Please sign in to comment.