denysdovhan / inboxer

Unofficial, free and open-source Inbox by Gmail Desktop App
https://denysdovhan.com/inboxer
MIT License
666 stars 74 forks source link

Clean seenMessages variable as new messages are read #81

Closed jmarino closed 6 years ago

jmarino commented 6 years ago

This fixes issue #65.

The variable seenMessages is used to keep track of previously seen unread messages so that the user is not continuously notified about them. If this variable is allowed to grow indefinitely, some newly received message may look like an older one and a new mail notification will not be generated. See issue #65 for an example where this can happen.

The changes in this PR delete stale entries from seenMessages as the unread emails are read, keeping the contents of seenMessages up to date.

denysdovhan commented 6 years ago

Cool! Thanks!