Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return of(DemoAdapter.mockedParticipants.map(user => {
let participantResponse = new ParticipantResponse();
participantResponse.participant = user;
participantResponse.metadata = {
totalUnreadMessages: Math.floor(Math.random() * 10)
}
return participantResponse;
}));
}