From 068ba4144ec6653f6906b674f5fefe2a7525590e Mon Sep 17 00:00:00 2001 From: vodyanoysh Date: Tue, 31 Mar 2026 23:35:54 +0700 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BA=D0=BE=D0=BD=D1=84=D0=BB=D0=B8=D0=BA=D1=82?= =?UTF-8?q?=20=D0=B1=D0=BB=D0=BE=D0=BA=D0=B8=D1=80=D0=BE=D0=B2=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B8=20=D0=B8=D1=81=D1=87=D0=B5=D0=B7=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B8?= =?UTF-8?q?=20=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit loadMessages держит mailboxLock на активную папку — параллельный STATUS в refreshUnreadCounts падал с ошибкой, initUnreadCounts записывал 0 и кнопка пропадала по v-if. Теперь refresh() выполняет шаги последовательно. Также кнопка фильтра остаётся видимой пока фильтр активен, даже если счётчик = 0. Co-Authored-By: Claude Sonnet 4.6 --- src/renderer/src/components/messages/MessageList.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/renderer/src/components/messages/MessageList.vue b/src/renderer/src/components/messages/MessageList.vue index 35ac98c..16aabe2 100644 --- a/src/renderer/src/components/messages/MessageList.vue +++ b/src/renderer/src/components/messages/MessageList.vue @@ -28,10 +28,9 @@ const allVisibleSelected = computed(() => // ── Refresh ─────────────────────────────────────────────── async function refresh(): Promise { if (!accountsStore.activeAccountId || !foldersStore.activeFolderId) return - await Promise.all([ - messagesStore.loadMessages(accountsStore.activeAccountId, foldersStore.activeFolderId, 0), - foldersStore.refreshUnreadCounts(accountsStore.activeAccountId) - ]) + // Последовательно: loadMessages держит mailboxLock, STATUS упадёт если папка залочена параллельно + await messagesStore.loadMessages(accountsStore.activeAccountId, foldersStore.activeFolderId, 0) + await foldersStore.refreshUnreadCounts(accountsStore.activeAccountId) } // ── Auto-check timer ────────────────────────────────────── @@ -143,7 +142,7 @@ async function handleSwipeAction(action: SwipeAction, messageId: string): Promis

{{ folderName }}