From: Andrew Gundersen Date: Mon, 12 Jul 2021 12:06:43 +0000 (-0500) Subject: revising previous commit X-Git-Tag: v2.0.1~10^2~3 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=fa24a8d46a6016d6de3c5eb23561612799712711;p=mime-chat revising previous commit --- diff --git a/src/ipc/handlers.ts b/src/ipc/handlers.ts index 1c812cd..f35e283 100644 --- a/src/ipc/handlers.ts +++ b/src/ipc/handlers.ts @@ -3,12 +3,10 @@ import { accountLogin, accountLogout } from "@/account"; import { IpcHandler } from "@/composables/useIpcMain"; -import { flush } from "@/audio"; const LOGIN_CHANNEL = "invoke-account-login"; const LOGOUT_CHANNEL = "invoke-account-logout"; -const GET_AUDIO_CHANNEL = "invoke-audio-flush"; export const loginHandler = new IpcHandler({ channel: LOGIN_CHANNEL, @@ -19,8 +17,3 @@ export const logoutHandler = new IpcHandler({ channel: LOGOUT_CHANNEL, handlerCallback: accountLogout }); - -export const getAudioHandler = new IpcHandler({ - channel: GET_AUDIO_CHANNEL, - handlerCallback: flush -}); diff --git a/src/ipc/listeners.ts b/src/ipc/listeners.ts index 0f63873..f92bead 100644 --- a/src/ipc/listeners.ts +++ b/src/ipc/listeners.ts @@ -1,10 +1,8 @@ import { IpcListener } from "@/composables/useIpcMain" import { sendMessage } from '@/session'; -import { collect } from "@/audio"; import { updateAppState } from "@/account"; import { onNavBar } from "@/window"; -import { toggleRecord } from "@/audio"; const CLIENT_MESSAGE_CHANNEL = "post-session-send" const APP_MOUNT_CHANNEL = "post-app-mount"; @@ -24,8 +22,3 @@ export const navBarListener = new IpcListener({ channel: NAV_BAR_CHANNEL, listenerCallback: onNavBar }); - -export const recordingListener = new IpcListener({ - channel: RECORDING_CHANNEL, - listenerCallback: toggleRecord -}); \ No newline at end of file