From 0d5e880fb21e9299c0bebe3d59e2b9eeb1f72dc0 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Tue, 29 Aug 2023 17:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=90=8C=E6=AD=A5=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/modules/sync/server/modules/list/sync/localEvent.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/modules/sync/server/modules/list/sync/localEvent.ts b/src/main/modules/sync/server/modules/list/sync/localEvent.ts index d5db5c99..9c193b7c 100644 --- a/src/main/modules/sync/server/modules/list/sync/localEvent.ts +++ b/src/main/modules/sync/server/modules/list/sync/localEvent.ts @@ -9,9 +9,10 @@ let unregisterLocalListAction: (() => void) | null const sendListAction = async(wss: LX.Sync.Server.SocketServer, action: LX.Sync.List.ActionList) => { // console.log('sendListAction', action.action) const userSpace = getUserSpace() - const key = await userSpace.listManage.createSnapshot() + let key = '' for (const client of wss.clients) { if (!client.moduleReadys?.list) continue + if (!key) key = await userSpace.listManage.createSnapshot() void client.remoteQueueList.onListSyncAction(action).then(async() => { return userSpace.listManage.updateDeviceSnapshotKey(client.keyInfo.clientId, key) }).catch(err => {