Skip to content

Commit 72e4342

Browse files
fix(ui): show favorites section based on the current folder
The visibility of the favorites section was driven by the unified inbox's starred envelopes for regular folders too, while the section itself renders the current folder's starred messages. Folders with starred mail hid the section until something populated the unified inbox list, and folders without starred mail showed an empty section once it was populated. Assisted-by: Claude:claude-fable-5 Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
1 parent 3758910 commit 72e4342

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/MailboxThread.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ export default {
355355
if (!this.sortFavorites) {
356356
return false
357357
}
358+
const mailbox = this.mailbox.isPriorityInbox ? this.unifiedInbox : this.mailbox
358359
const envelopes = this.mainStore.getEnvelopes(
359-
this.unifiedInbox.databaseId,
360+
mailbox.databaseId,
360361
this.appendToSearch(this.favoriteQuery),
361362
)
362363
return envelopes.length > 0

0 commit comments

Comments
 (0)