diff options
Diffstat (limited to 'src/components/Thread.vue')
-rw-r--r-- | src/components/Thread.vue | 9 |
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') |