diff --git a/src/common/features/chats/components/chat-input.tsx b/src/common/features/chats/components/chat-input.tsx index 6a4e50e837b..6207f002dca 100644 --- a/src/common/features/chats/components/chat-input.tsx +++ b/src/common/features/chats/components/chat-input.tsx @@ -29,6 +29,7 @@ import { import Tooltip from "../../../components/tooltip"; import { ChatInputFiles } from "./chat-input-files"; import Gallery from "../../../components/gallery"; +import useWindowSize from "react-use/lib/useWindowSize"; interface Props { currentChannel?: Channel; @@ -36,6 +37,7 @@ interface Props { } export default function ChatInput({ currentChannel, currentContact }: Props) { + const size = useWindowSize(); useChannelsQuery(); const inputRef = useRef(null); @@ -201,13 +203,15 @@ export default function ChatInput({ currentChannel, currentContact }: Props) { />
-