diff --git a/src/client/chat--left.jsx b/src/client/chat--left.jsx index 10018f5..581d40b 100644 --- a/src/client/chat--left.jsx +++ b/src/client/chat--left.jsx @@ -16,8 +16,6 @@ import { unreadUserSelector, } from '~/common/state/user'; -import useBreakpoints from '~/client/hooks/useBreakpoints'; - import Bar from './bar'; import ChatLeftFriends from './chat--leftFriends'; import ChatLeftRooms from './chat--leftRooms'; @@ -27,12 +25,11 @@ export default function ChatLeft() { const leftActiveIndex = useSelector(leftActiveIndexSelector); const active = useSelector(leftActiveIndexSelector); const isOpen = useSelector(leftIsOpenSelector); - const {tablet} = useBreakpoints(); const id = useSelector(idSelector); const pendingFriendship = useSelector(pendingFriendshipSelector); const unreadChannel = useSelector(unreadChannelSelector); const unreadUser = useSelector(unreadUserSelector); - const showsAsOpen = isOpen || !tablet; + const showsAsOpen = isOpen; const leftButtons = [ { count: unreadChannel, diff --git a/src/client/chat--right.jsx b/src/client/chat--right.jsx index 2b87b9e..0aa4df4 100644 --- a/src/client/chat--right.jsx +++ b/src/client/chat--right.jsx @@ -14,7 +14,6 @@ import { blockedSelector, } from '~/common/state/user'; -import useBreakpoints from './hooks/useBreakpoints'; import useChannel from '~/client/hooks/useChannel'; import Bar from './bar'; @@ -29,8 +28,7 @@ export default function ChatRight() { const blockedIds = useSelector(blockedSelector); const channelUsers = useSelector((state) => channelUsersSelector(state, channel)); const isOpen = useSelector(rightIsOpenSelector); - const {tablet} = useBreakpoints(); - const showsAsOpen = isOpen || !tablet; + const showsAsOpen = isOpen; const rightButtons = [] .concat(channelUsers.length > 0 ? [{icon: '🙃', label: 'Present'}] : []) .concat(blockedIds.length > 0 ? [{icon: '☢️', label: 'Blocked'}] : []);