fix(plugins): clean fifth channel lint batch

This commit is contained in:
Vincent Koc
2026-04-06 14:45:09 +01:00
parent 712479eea1
commit 029290c8d0
18 changed files with 20 additions and 36 deletions

View File

@@ -202,7 +202,7 @@ export function createIMessageConversationBindingManager(params: {
},
unbindBySessionKey: (targetSessionKey) => {
const removed: IMessageConversationBindingRecord[] = [];
for (const record of [...getState().bindingsByAccountConversation.values()]) {
for (const record of getState().bindingsByAccountConversation.values()) {
if (record.accountId !== accountId || record.targetSessionKey !== targetSessionKey) {
continue;
}
@@ -214,7 +214,7 @@ export function createIMessageConversationBindingManager(params: {
return removed;
},
stop: () => {
for (const key of [...getState().bindingsByAccountConversation.keys()]) {
for (const key of getState().bindingsByAccountConversation.keys()) {
if (key.startsWith(`${accountId}:`)) {
getState().bindingsByAccountConversation.delete(key);
}