skiff-org / skiff-windows-app

Skiff's Windows app for privacy-first, end-to-end encrypted Mail, Drive, Calendar, and Pages.
https://skiff.com
GNU Affero General Public License v3.0
108 stars 70 forks source link

[ServiceMessages] unreadMailCount message arrives for each folder #31

Open Novack opened 9 months ago

Novack commented 9 months ago

Whenever user change the selected folder, the unreadMailCount message arrives from the cloud with info from that currently open folder, resulting in the notification dot and counter from the Windows application icons, to display misguiding information.

The unreadMailCount should follow two rules:

(Edited to include user custom folders).

riverar commented 9 months ago

Not sure I agree with that. The unread message badge should apply to all folders. Users, like me, may have rules routing messages to other folders for organizational purposes!

Novack commented 9 months ago

Not sure I agree with that. The unread message badge should apply to all folders. Users, like me, may have rules routing messages to other folders for organizational purposes!

You're correct, thats not what I meant, sorry for the confusion.

An example will be more clear I think: currently if you open Trash folder, the unread count message will be sent to the desktop app with the amount of unread emails in the Trash. Same for any folder.

So what we need is the unread count to be the sum of unread emails in Inbox, plus user custom folders, regardless of what folder is currently open. Sounds more like it? Will add this to the original message.

riverar commented 9 months ago

Ah got it, totally with you now. Thanks!