diff --git a/packages/desktop/src/pages/terminal/index.tsx b/packages/desktop/src/pages/terminal/index.tsx index 8a15e25..3368e34 100644 --- a/packages/desktop/src/pages/terminal/index.tsx +++ b/packages/desktop/src/pages/terminal/index.tsx @@ -305,14 +305,19 @@ function LineDetailsTerminal({ // showing all tuned in members...they may not hear me since they might be doing something else // but feeling of presentness - const profilePictures = useMemo(() => { - const pictureSources: string[] = []; + const tunedProfiles = useMemo(() => { + const pictureSources: { name: string; pictureSrc: string }[] = []; selectedLine.tunedInMemberIds?.forEach((tunedInMemberUserId) => { // don't want to see my own picture // TODO: don't show myself!? if (tunedInMemberUserId === userDetails.user._id.toString()) { - pictureSources.push(userDetails.user?.picture); + pictureSources.push(); + + pictureSources.push({ + name: userDetails.user?.givenName, + pictureSrc: userDetails.user?.picture, + }); return; } @@ -320,7 +325,24 @@ function LineDetailsTerminal({ (userObj) => userObj._id.toString() === tunedInMemberUserId ); if (otherUserObject?.picture) - pictureSources.push(otherUserObject.picture); + pictureSources.push({ + name: otherUserObject.givenName, + pictureSrc: otherUserObject.picture, + }); + }); + + return pictureSources; + }, [selectedLine, userDetails]); + + // pics for the line icons + const profilePictures = useMemo(() => { + const pictureSources: string[] = []; + + // ?don't add in my image as that's useless contextually? + // if (userData?.user?.picture) pictureSources.push(userData.user.picture); + + selectedLine.otherUserObjects?.forEach((otherUser) => { + if (otherUser.picture) pictureSources.push(otherUser.picture); }); return pictureSources; @@ -333,41 +355,38 @@ function LineDetailsTerminal({ > {/* line details */}