From bc65e30735a1b7ce4cbee3f0504316b943c0a2b2 Mon Sep 17 00:00:00 2001 From: Jeremy Kahn Date: Mon, 2 Dec 2024 08:09:01 -0600 Subject: [PATCH] fixup! feat(#141): [wip] render direct message room --- src/components/Room/Room.tsx | 5 ++--- src/components/Room/useRoom.ts | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Room/Room.tsx b/src/components/Room/Room.tsx index 306a464e5..9ceb70991 100644 --- a/src/components/Room/Room.tsx +++ b/src/components/Room/Room.tsx @@ -51,6 +51,7 @@ export function Room({ const { showActiveTypingStatus, publicKey } = settingsContext.getUserSettings() const { + isDirectMessageRoom, isMessageSending, handleInlineMediaUpload, handleMessageChange, @@ -78,8 +79,6 @@ export function Room({ } ) - const isDirectMessageRoom = typeof targetPeerId === 'string' - const handleMessageSubmit = async (message: string) => { await sendMessage(message) } @@ -167,7 +166,7 @@ export function Room({ diff --git a/src/components/Room/useRoom.ts b/src/components/Room/useRoom.ts index 4cd9a153e..7c0774e0b 100644 --- a/src/components/Room/useRoom.ts +++ b/src/components/Room/useRoom.ts @@ -538,6 +538,7 @@ export function useRoom( }, [peerList, peerRoom, setPeerConnectionTypes]) return { + isDirectMessageRoom, isPrivate, handleInlineMediaUpload, handleMessageChange,