From 39e09762b8788622783b22efabb3e48e81cde05b Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 21 May 2024 11:57:20 -0700 Subject: [PATCH] Remove file dropdown button (#185) --- webapp/src/index.tsx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/webapp/src/index.tsx b/webapp/src/index.tsx index 8fd9917d..4124b281 100644 --- a/webapp/src/index.tsx +++ b/webapp/src/index.tsx @@ -15,14 +15,12 @@ import IconThreadSummarization from './components/assets/icon_thread_summarizati import IconReactForMe from './components/assets/icon_react_for_me'; import RHS from './components/rhs/rhs'; import Config from './components/system_console/config'; -import {doReaction, doSummarize, doTranscribe, getAIDirectChannel} from './client'; +import {doReaction, doSummarize, getAIDirectChannel} from './client'; import {setOpenRHSAction} from './redux_actions'; import {BotUsername} from './constants'; import PostEventListener from './websocket'; import {setupRedux} from './redux'; import UnreadsSumarize from './components/unreads_summarize'; -import IconAI from './components/assets/icon_ai'; -import {doSelectPost} from './hooks'; import {Pill} from './components/pill'; type WebappStore = Store>> @@ -42,10 +40,6 @@ const RHSTitleContainer = styled.span` margin-left: 8px; `; -const SummarizeRecordingIconContainer = styled.span` - color: rgba(var(--center-channel-color-rgb), 0.56); -`; - const RHSTitle = () => { return ( @@ -164,11 +158,6 @@ export default class Plugin { if (registry.registerNewMessagesSeparatorActionComponent) { registry.registerNewMessagesSeparatorActionComponent(UnreadsSumarize); } - - registry.registerFileDropdownMenuAction(isProcessableAudio, <>{'Summarize recording'}, async (fileInfo: any) => { - const result = await doTranscribe(fileInfo.post_id, fileInfo.id); - doSelectPost(result.postid, result.channelid, store.dispatch); - }); } }