diff --git a/lib/selectors/chat-selectors.js b/lib/selectors/chat-selectors.js --- a/lib/selectors/chat-selectors.js +++ b/lib/selectors/chat-selectors.js @@ -57,7 +57,6 @@ | { +type: 'seeMore', +unread: boolean, - +showingSidebarsInline: boolean, } | { +type: 'spacer' }; @@ -178,7 +177,6 @@ sidebarItems.push({ type: 'seeMore', unread: numUnreadSidebars > maxUnreadSidebars, - showingSidebarsInline: sidebarItems.length !== 0, }); } if (sidebarItems.length !== 0) { diff --git a/native/chat/chat-thread-list-item.react.js b/native/chat/chat-thread-list-item.react.js --- a/native/chat/chat-thread-list-item.react.js +++ b/native/chat/chat-thread-list-item.react.js @@ -73,7 +73,6 @@ diff --git a/native/chat/chat-thread-list-see-more-sidebars.react.js b/native/chat/chat-thread-list-see-more-sidebars.react.js --- a/native/chat/chat-thread-list-see-more-sidebars.react.js +++ b/native/chat/chat-thread-list-see-more-sidebars.react.js @@ -13,11 +13,10 @@ type Props = { +threadInfo: ThreadInfo, +unread: boolean, - +showingSidebarsInline: boolean, +onPress: (threadInfo: ThreadInfo) => void, }; function ChatThreadListSeeMoreSidebars(props: Props): React.Node { - const { onPress, threadInfo, unread, showingSidebarsInline } = props; + const { onPress, threadInfo, unread } = props; const onPressButton = React.useCallback(() => onPress(threadInfo), [ onPress, threadInfo, @@ -26,7 +25,6 @@ const colors = useColors(); const styles = useStyles(unboundStyles); const unreadStyle = unread ? styles.unread : null; - const buttonText = showingSidebarsInline ? 'See more...' : 'See threads...'; return ( ); } diff --git a/web/chat/chat-thread-list-item.react.js b/web/chat/chat-thread-list-item.react.js --- a/web/chat/chat-thread-list-item.react.js +++ b/web/chat/chat-thread-list-item.react.js @@ -104,7 +104,6 @@ ); diff --git a/web/chat/chat-thread-list-see-more-sidebars.react.js b/web/chat/chat-thread-list-see-more-sidebars.react.js --- a/web/chat/chat-thread-list-see-more-sidebars.react.js +++ b/web/chat/chat-thread-list-see-more-sidebars.react.js @@ -12,17 +12,15 @@ type Props = { +threadInfo: ThreadInfo, +unread: boolean, - +showingSidebarsInline: boolean, }; function ChatThreadListSeeMoreSidebars(props: Props): React.Node { - const { unread, showingSidebarsInline, threadInfo } = props; + const { unread, threadInfo } = props; const { pushModal } = useModalContext(); const onClick = React.useCallback( () => pushModal(), [pushModal, threadInfo], ); - const buttonText = showingSidebarsInline ? 'See more...' : 'See threads...'; return (
@@ -34,7 +32,7 @@ [css.unread]: unread, })} > - {buttonText} + See more...