From 444ac6d6e9e6947c600a5922c52d25f5d2efdca8 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 30 May 2022 17:10:13 +0200 Subject: [Glitch] Remove unnused otherAccounts property Port 2f6416db53fd987b702969afa0de69a06caf0d27 to glitch-soc + other related cleanup Signed-off-by: Claire --- .../flavours/glitch/components/status_header.js | 65 ++++++++-------------- 1 file changed, 23 insertions(+), 42 deletions(-) (limited to 'app/javascript/flavours/glitch/components/status_header.js') diff --git a/app/javascript/flavours/glitch/components/status_header.js b/app/javascript/flavours/glitch/components/status_header.js index cc476139b..990dea536 100644 --- a/app/javascript/flavours/glitch/components/status_header.js +++ b/app/javascript/flavours/glitch/components/status_header.js @@ -15,7 +15,6 @@ export default class StatusHeader extends React.PureComponent { status: ImmutablePropTypes.map.isRequired, friend: ImmutablePropTypes.map, parseClick: PropTypes.func.isRequired, - otherAccounts: ImmutablePropTypes.list, }; // Handles clicks on account name/image @@ -34,57 +33,39 @@ export default class StatusHeader extends React.PureComponent { const { status, friend, - otherAccounts, } = this.props; const account = status.get('account'); let statusAvatar; - if (otherAccounts && otherAccounts.size > 0) { - statusAvatar = ; - } else if (friend === undefined || friend === null) { + if (friend === undefined || friend === null) { statusAvatar = ; } else { statusAvatar = ; } - if (!otherAccounts) { - return ( - - ); - } else { - // This is a DM conversation - return ( -
- - {statusAvatar} - - - - - -
- ); - } + return ( + + ); } } -- cgit