mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-26 02:10:58 +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 requestMethodMap: Record<string, string> = {}
|
||||||
export const emittedBuddyReqList: string[] = []
|
export const emittedBuddyReqList: string[] = []
|
||||||
@ -9,4 +9,3 @@ export const emittedGuildMemberRemovedList: string[] = []
|
|||||||
export const sendQueue: string[] = []
|
export const sendQueue: string[] = []
|
||||||
|
|
||||||
export const groupMap: Record<string, Group> = {}
|
export const groupMap: Record<string, Group> = {}
|
||||||
export const friendMap: Record<string, Profile> = {}
|
|
||||||
|
@ -26,7 +26,6 @@ import {
|
|||||||
emittedGuildMemberRemovedList,
|
emittedGuildMemberRemovedList,
|
||||||
emittedGuildMemberRequestList,
|
emittedGuildMemberRequestList,
|
||||||
emittedGuildRequestList,
|
emittedGuildRequestList,
|
||||||
friendMap,
|
|
||||||
groupMap,
|
groupMap,
|
||||||
requestMethodMap,
|
requestMethodMap,
|
||||||
sendQueue,
|
sendQueue,
|
||||||
@ -297,15 +296,10 @@ const dispatcher = async (
|
|||||||
case 'nodeIKernelBuddyListener/onBuddyListChange': {
|
case 'nodeIKernelBuddyListener/onBuddyListChange': {
|
||||||
const { data } = payload as OnBuddyListChange
|
const { data } = payload as OnBuddyListChange
|
||||||
|
|
||||||
for (const category of data) {
|
for (const category of data)
|
||||||
for (const buddy of category.buddyList) {
|
for (const buddy of category.buddyList)
|
||||||
ctx.chronocat.uix.add(buddy.uid, buddy.uin)
|
ctx.chronocat.uix.add(buddy.uid, buddy.uin)
|
||||||
|
|
||||||
// buddy.category = category.categoryName
|
|
||||||
friendMap[buddy.uin] = buddy
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user