mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-25 01:29:46 +00:00
refactor(event): remove unused friendMap
This commit is contained in:
parent
fe48309be0
commit
4005d8ccb7
@ -1,4 +1,4 @@
|
||||
import type { Group, Profile } from '@chronocat/red'
|
||||
import type { Group } from '@chronocat/red'
|
||||
|
||||
export const requestMethodMap: Record<string, string> = {}
|
||||
export const emittedBuddyReqList: string[] = []
|
||||
@ -9,4 +9,3 @@ export const emittedGuildMemberRemovedList: string[] = []
|
||||
export const sendQueue: string[] = []
|
||||
|
||||
export const groupMap: Record<string, Group> = {}
|
||||
export const friendMap: Record<string, Profile> = {}
|
||||
|
@ -26,7 +26,6 @@ import {
|
||||
emittedGuildMemberRemovedList,
|
||||
emittedGuildMemberRequestList,
|
||||
emittedGuildRequestList,
|
||||
friendMap,
|
||||
groupMap,
|
||||
requestMethodMap,
|
||||
sendQueue,
|
||||
@ -297,15 +296,10 @@ const dispatcher = async (
|
||||
case 'nodeIKernelBuddyListener/onBuddyListChange': {
|
||||
const { data } = payload as OnBuddyListChange
|
||||
|
||||
for (const category of data) {
|
||||
for (const buddy of category.buddyList) {
|
||||
for (const category of data)
|
||||
for (const buddy of category.buddyList)
|
||||
ctx.chronocat.uix.add(buddy.uid, buddy.uin)
|
||||
|
||||
// buddy.category = category.categoryName
|
||||
friendMap[buddy.uin] = buddy
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user