Skip to content

Commit

Permalink
fixup! πŸ‘Œ IMPROVE: don't open first mail by default
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Aug 4, 2023
1 parent 88955eb commit ab70613
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion src/components/MailboxThread.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ export default {
hasEnvelopes() {
if (this.mailbox.isPriorityInbox) {
return this.$store.getters.getEnvelopes(this.mailbox.databaseId, this.appendToSearch(priorityImportantQuery)).length > 0
|| this.$store.getters.getEnvelopes(this.mailbox.databaseId, this.appendToSearch(priorityStarredQuery)).length > 0
|| this.$store.getters.getEnvelopes(this.mailbox.databaseId, this.appendToSearch(priorityOtherQuery)).length > 0
}
return this.$store.getters.getEnvelopes(this.mailbox.databaseId, this.searchQuery).length > 0
Expand Down
10 changes: 1 addition & 9 deletions src/components/NoMessageSelected.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<IconMail :size="65" />
</template>
</NcEmptyContent>
<NewMessageButtonHeader class="welcome-empty" />
<NewMessageButtonHeader />
</AppContentDetails>
</template>

Expand All @@ -44,14 +44,6 @@ export default {
NcEmptyContent,
IconMail,
},
computed: {
currentMailbox() {
if (this.$route.name === 'message' || this.$route.name === 'mailbox') {
return this.$store.getters.getMailbox(this.$route.params.mailboxId)
}
return undefined
},
},
}
</script>
<style lang="scss" scoped>
Expand Down

0 comments on commit ab70613

Please sign in to comment.