diff --git a/src/components/views/messages/SenderProfile.js b/src/components/views/messages/SenderProfile.js index 0f767675e2b..bcad4d8c827 100644 --- a/src/components/views/messages/SenderProfile.js +++ b/src/components/views/messages/SenderProfile.js @@ -84,8 +84,8 @@ export default React.createClass({ _getDisplayedGroups(userGroups, relatedGroups) { let displayedGroups = userGroups || []; if (relatedGroups && relatedGroups.length > 0) { - displayedGroups = displayedGroups.filter((groupId) => { - return relatedGroups.includes(groupId); + displayedGroups = relatedGroups.filter((groupId) => { + return displayedGroups.includes(groupId); }); } else { displayedGroups = [];