Skip to content

Commit

Permalink
Remove file dropdown button (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
crspeller authored May 21, 2024
1 parent b28321d commit 39e0976
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions webapp/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<GlobalState, Action<Record<string, unknown>>>
Expand All @@ -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 (
<RHSTitleContainer>
Expand Down Expand Up @@ -164,11 +158,6 @@ export default class Plugin {
if (registry.registerNewMessagesSeparatorActionComponent) {
registry.registerNewMessagesSeparatorActionComponent(UnreadsSumarize);
}

registry.registerFileDropdownMenuAction(isProcessableAudio, <><SummarizeRecordingIconContainer className='icon'><IconAI/></SummarizeRecordingIconContainer>{'Summarize recording'}</>, async (fileInfo: any) => {
const result = await doTranscribe(fileInfo.post_id, fileInfo.id);
doSelectPost(result.postid, result.channelid, store.dispatch);
});
}
}

Expand Down

0 comments on commit 39e0976

Please sign in to comment.