Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment/Decrement message count on folders and aliases when messages are marked read and unread #34

Open
3 tasks done
hexadecible opened this issue Aug 8, 2022 · 2 comments · Fixed by #56
Open
3 tasks done
Assignees

Comments

@hexadecible
Copy link
Contributor

hexadecible commented Aug 8, 2022

  • When messages are selected and marked as read or unread, the corresponding folder or alias count should be incremented or decremented.
  • Call the markAsUnread API when marking messages as unread.
  • Folder and alias counts should also be incremented when new messages are loaded in and decremented when unread messages are deleted.

API for incrementing/decrementing alias count:

const payload = { id: 'alice2022#netflix' , amount: 1 } // Increment count by 1. Decrement would be -1
channel.send({ event: 'alias:updateAliasCount', payload })

API for incrementing/decrementing folder count:

const payload = { id: 1, amount: 1 } // Increment count by 1. Decrement would be -1
channel.send({ event: 'folder:updateFolderCount', payload })

API for marking message as unread:

const payload = { id: email.emailId }
channel.send({ event: 'email:markAsUnread', payload })
@Ellobo16
Copy link
Collaborator

Ellobo16 commented Nov 3, 2022

@vitalikgriza Unread messages on an alias don't show a counter.
34-IncrementDecrement
34-IncrementDecrement(2)

@vitalikgriza
Copy link
Collaborator

Please try it in build 15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants