refactor(event): update

This commit is contained in:
Il Harper 2024-03-05 21:25:27 +08:00
parent 18ffcdbad1
commit 6b473e4874
No known key found for this signature in database
GPG Key ID: 4B71FCA698E7E8EC
2 changed files with 2 additions and 3 deletions

View File

@ -1 +1,2 @@
export const requestMethodMap: Record<string, string> = {}
export const emittedBuddyReqList: string[] = []

View File

@ -15,7 +15,7 @@ import { MsgType, SendType } from '@chronocat/red'
import type { ChronocatContext } from '@chronocat/shell'
import type { IpcManData } from 'ipcman'
import { ipcMan } from 'ipcman'
import { emittedBuddyReqList } from './globalVars'
import { emittedBuddyReqList, requestMethodMap } from './globalVars'
import {
FriendRequestDispatchMessage,
MessageCreatedDispatchMessage,
@ -26,8 +26,6 @@ declare const __DEFINE_CHRONO_VERSION__: string
export const name = 'engine-chronocat-event'
export const version = __DEFINE_CHRONO_VERSION__
const requestMethodMap: Record<string, string> = {}
export const apply = async (ctx: ChronocatContext) => {
const dispatcher = async (method: string, payload: unknown) => {
switch (method) {