diff --git a/tgui/packages/tgui/interfaces/Communicator.tsx b/tgui/packages/tgui/interfaces/Communicator.tsx index 6128f27038..aef3982c96 100644 --- a/tgui/packages/tgui/interfaces/Communicator.tsx +++ b/tgui/packages/tgui/interfaces/Communicator.tsx @@ -600,7 +600,7 @@ type MessagingTabData = { // THREAD targetAddressName: string; targetAddress: string; - imList: { im: string }[]; + imList: { address: string; to_address: string; im: string }[]; }; /* Messaging */ @@ -718,11 +718,16 @@ const MessagingThreadTab = (props, context) => { 'height': '95%', 'overflow-y': 'auto', }}> - {imList.map((im, i) => ( - - {IsIMOurs(im, targetAddress) ? 'You' : 'Them'}: {im.im} - - ))} + {imList.map( + (im, i) => + (im.to_address === targetAddress || im.address === targetAddress) && ( + + {IsIMOurs(im, targetAddress) ? 'You' : 'Them'}: {im.im} + + ) + )}