putting in check if there is activity in a chat which I haven't viewed

This commit is contained in:
Arjun Patel
2022-02-04 00:20:35 -08:00
parent 322df9211d
commit f749729212
4 changed files with 60 additions and 13 deletions
@@ -107,14 +107,11 @@ export function MasterAvatarGroupWithUserFetch(props: {
const resultUsers: User[] = [] as User[];
console.log(listOfOtherUsers);
listOfOtherUsers.forEach((oUser) => {
if (relContactsMap.has(oUser)) {
resultUsers.push(relContactsMap.get(oUser)!);
}
});
console.log("fetched users for frontend: ", resultUsers);
return <MasterAvatarGroup listOfUsers={resultUsers} {...props} />;
}