Skip to content

Commit

Permalink
feat(plugin-meetings): Return resourceType when get locus annotation …
Browse files Browse the repository at this point in the history
…info (#3521)
  • Loading branch information
JudyZhuHz authored and mkesavan13 committed Apr 10, 2024
1 parent d72597a commit dfcbe9d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@webex/plugin-meetings/src/meeting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2549,7 +2549,8 @@ export default class Meeting extends StatelessWebexPlugin {
contentShare.deviceUrlSharing === previousContentShare.deviceUrlSharing &&
whiteboardShare.beneficiaryId === previousWhiteboardShare?.beneficiaryId &&
whiteboardShare.disposition === previousWhiteboardShare?.disposition &&
whiteboardShare.resourceUrl === previousWhiteboardShare?.resourceUrl
whiteboardShare.resourceUrl === previousWhiteboardShare?.resourceUrl &&
contentShare.resourceType === previousContentShare?.resourceType
) {
// nothing changed, so ignore
// (this happens when we steal presentation from remote)
Expand Down
37 changes: 37 additions & 0 deletions packages/@webex/plugin-meetings/test/unit/spec/meeting/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9631,6 +9631,13 @@ describe('plugin-meetings', () => {
'https://board-a.wbx2.com/board/api/v1/channels/977a7330-54f4-11eb-b1ef-91f5eefc7bf3',
};

const SHARE_TYPE = {
FILE:
'FILE',
DESKTOP:
'DESKTOP',
};

const DEVICE_URL = {
LOCAL_WEB: 'my-web-url',
LOCAL_MAC: 'my-mac-url',
Expand Down Expand Up @@ -10629,6 +10636,36 @@ describe('plugin-meetings', () => {
payloadTestHelper([data1, data2, data3]);
});
});

describe('File Share --> Desktop Share', () => {
it('Scenario #1: remote person A shares file then share desktop', () => {
const data1 = generateData(
blankPayload,
true,
true,
USER_IDS.ME,
undefined,
false,
undefined,
undefined,
undefined,
undefined,
DEVICE_URL.LOCAL_WEB,
SHARE_TYPE.FILE
);
const data2 = generateData(
data1.payload,
true,
false,
USER_IDS.ME,
SHARE_TYPE.DESKTOP
);
const data3 = generateData(data2.payload, true, true, USER_IDS.ME);

payloadTestHelper([data1, data2, data3]);
});

});
});
});

Expand Down

0 comments on commit dfcbe9d

Please sign in to comment.