From fd0fa3c9214c9193ea8ad0c4b759ebddc0ed734c Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Fri, 18 Apr 2025 03:00:31 -0500 Subject: [PATCH] clean up call references --- src/app/features/room/RoomView.tsx | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/src/app/features/room/RoomView.tsx b/src/app/features/room/RoomView.tsx index 9b1372af..f98729ce 100644 --- a/src/app/features/room/RoomView.tsx +++ b/src/app/features/room/RoomView.tsx @@ -23,7 +23,6 @@ import { settingsAtom } from '../../state/settings'; import { useSetting } from '../../state/hooks/settings'; import { useAccessibleTagColors, usePowerLevelTags } from '../../hooks/usePowerLevelTags'; import { useTheme } from '../../hooks/useTheme'; -import { CallActivationEffect } from '../../pages/call/CallActivation'; const FN_KEYS_REGEX = /^F\d+$/; @@ -78,7 +77,7 @@ export function RoomView({ room, eventId }: { room: Room; eventId?: string }) { const [powerLevelTags, getPowerLevelTag] = usePowerLevelTags(room, powerLevels); const theme = useTheme(); const accessibleTagColors = useAccessibleTagColors(theme.kind, powerLevelTags); - const isCall = room.isCallRoom(); + useKeyDown( window, useCallback( @@ -87,7 +86,6 @@ export function RoomView({ room, eventId }: { room: Room; eventId?: string }) { if (document.querySelector('.ReactModalPortal > *') || navigation.isRawModalVisible) { return; } - if (isCall) return; if (shouldFocusMessageField(evt) || isKeyHotkey('mod+v', evt)) { if (editor) { @@ -95,32 +93,13 @@ export function RoomView({ room, eventId }: { room: Room; eventId?: string }) { } } }, - [editor, isCall] + [editor] ) ); - if (isCall) { - return ( - - - - - ); - } - return ( - {/* Main timeline area */}