Skip to content

Commit

Permalink
🐛 FIX: 'no message selected' message only displayed after 30 seconds …
Browse files Browse the repository at this point in the history
…on priority inbox

Signed-off-by: Jonas Sulzer <[email protected]>
  • Loading branch information
violoncelloCH authored and GretaD committed Aug 4, 2023
1 parent de721ce commit bc97990
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/MailboxThread.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ export default {
return this.$store.getters.getMailbox(UNIFIED_INBOX_ID)
},
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(priorityOtherQuery)).length > 0
}
return this.$store.getters.getEnvelopes(this.mailbox.databaseId, this.searchQuery).length > 0
},
hasImportantEnvelopes() {
Expand All @@ -167,7 +171,7 @@ export default {
query() {
if (this.$route.params.filter === 'starred') {
if (this.searchQuery) {
return this.searchQuery + ' is:starred'
return this.appendToSearch('is:starred')
}
return 'is:starred'
}
Expand Down

0 comments on commit bc97990

Please sign in to comment.