From b7af7837673acdeac13f7c4e518f0b7793203aa6 Mon Sep 17 00:00:00 2001 From: greta Date: Mon, 2 Sep 2024 14:19:58 +0200 Subject: [PATCH] fixup! fix: thread disappearing after refresh Signed-off-by: greta --- src/components/MailboxThread.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/MailboxThread.vue b/src/components/MailboxThread.vue index d378126346..d2ccec23b2 100644 --- a/src/components/MailboxThread.vue +++ b/src/components/MailboxThread.vue @@ -317,7 +317,8 @@ export default { }, methods: { async fetchEnvelopes() { - if (!this.hasEnvelopes) { + const existingEnvelopes = this.$store.getters.getEnvelopes(this.mailbox.databaseId, this.searchQuery || '') + if (!existingEnvelopes.length) { await this.$store.dispatch('fetchEnvelopes', { mailboxId: this.mailbox.databaseId, query: this.searchQuery || '',