Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
avatar: "http://68.media.tumblr.com/avatar_ba75cbb26da7_128.png",
status: ChatParticipantStatus.Offline
},
{
participantType: ChatParticipantType.User,
id: 9,
displayName: "Sansa Stark",
avatar: "http://pm1.narvii.com/6201/dfe7ad75cd32130a5c844d58315cbca02fe5b804_128.jpg",
status: ChatParticipantStatus.Online
},
{
participantType: ChatParticipantType.User,
id: 10,
displayName: "Theon Greyjoy",
avatar: "https://thumbnail.myheritageimages.com/502/323/78502323/000/000114_884889c3n33qfe004v5024_C_64x64C.jpg",
status: ChatParticipantStatus.Away
}];
listFriends(): Observable {
return of(DemoAdapter.mockedParticipants.map(user => {
let participantResponse = new ParticipantResponse();
participantResponse.participant = user;
participantResponse.metadata = {
totalUnreadMessages: Math.floor(Math.random() * 10)
}
return participantResponse;
}));
}
getMessageHistory(destinataryId: any): Observable {