diff --git a/src/MembershipsSDKAdapter.js b/src/MembershipsSDKAdapter.js index 93626c85..7b1a0771 100644 --- a/src/MembershipsSDKAdapter.js +++ b/src/MembershipsSDKAdapter.js @@ -11,7 +11,7 @@ import {DestinationType, MembershipsAdapter} from '@webex/component-adapter-inte */ function getActiveMembers(members) { return Object.values(members) - .filter((member) => !member.isInMeeting) + .filter((member) => member.isInMeeting && member.isUser) .map((member) => ({ id: member.id, })); diff --git a/src/__mocks__/sdk.js b/src/__mocks__/sdk.js index d486973f..d96245ea 100644 --- a/src/__mocks__/sdk.js +++ b/src/__mocks__/sdk.js @@ -20,7 +20,9 @@ export const mockSDKMeeting = { members: { membersCollection: { members: { - id: mockSDKPerson, + person: {...mockSDKPerson, isInMeeting: true, isUser: true}, + notJoinedPerson: {...mockSDKPerson, id: 'notJoinedPerson', isInMeeting: false, isUser: true}, + device: {...mockSDKPerson, id: 'device', isInMeeting: true, isUser: false}, }, }, on: jest.fn(),