Skip to content

Commit

Permalink
fix(MembershipsSdkAdapter): get in meeting members
Browse files Browse the repository at this point in the history
  • Loading branch information
adamweeks committed Sep 16, 2020
1 parent 75343f3 commit 685764d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MembershipsSDKAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}));
Expand Down
4 changes: 3 additions & 1 deletion src/__mocks__/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 685764d

Please sign in to comment.