Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Thread.vue')
-rw-r--r--src/components/Thread.vue9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/Thread.vue b/src/components/Thread.vue
index 5bbfea372..15dea0cdb 100644
--- a/src/components/Thread.vue
+++ b/src/components/Thread.vue
@@ -91,13 +91,16 @@ export default {
return parseInt(this.$route.params.threadId, 10)
},
thread() {
- const envelopes = this.$store.getters.getEnvelopeThread(this.threadId)
- const envelope = envelopes.find(envelope => envelope.databaseId === this.threadId)
-
+ const envelope = this.$store.getters.getEnvelope(this.threadId)
if (envelope === undefined) {
return []
}
+ const envelopes = this.$store.getters.getEnvelopesByThreadRootId(envelope.accountId, envelope.threadRootId)
+ if (envelopes.length === 0) {
+ return []
+ }
+
const currentMailbox = this.$store.getters.getMailbox(envelope.mailboxId)
const trashMailbox = this.$store.getters.getMailboxes(currentMailbox.accountId).find(mailbox => mailbox.specialRole === 'trash')