Skip to content

Commit 2c6aed0

Browse files
Post-review adjustments
1 parent c1a8607 commit 2c6aed0

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/components/ChannelListItem/ChannelListItemActionButtons.defaults.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -472,11 +472,7 @@ export const useBaseChannelActionSetFilter = (channelActionSet: ChannelActionIte
472472
const membership = useChannelMembershipState(channel);
473473
const memberCount = channel.data?.member_count ?? 0;
474474
const connectedUserIsMember = typeof membership.user !== 'undefined';
475-
const isDirectMessageChannel =
476-
connectedUserIsMember &&
477-
memberCount === 2 &&
478-
channel.type === 'messaging' &&
479-
channel.id?.startsWith('!members-');
475+
const isDirectMessageChannel = connectedUserIsMember && memberCount === 2;
480476

481477
const ownCapabilities = channel.data?.own_capabilities;
482478

0 commit comments

Comments
 (0)