nicholaschiang / hammock

Move your newsletters outside of your inbox. Focus on and learn from the content you love in a distraction-free reading space.
https://readhammock.com
GNU Affero General Public License v3.0
11 stars 1 forks source link

Recent newsletter doesn't show up in the feed #38

Closed martinsrna closed 3 years ago

martinsrna commented 3 years ago

I received a new newsletter from Quartz, but it doesn’t show up in the Feed (it has the label and it’s filtered in Gmail):

image (1)

nicholaschiang commented 3 years ago

Scrappy fix to address this: trigger an GET /api/sync call when the user opens up any one of their feed pages (i.e. every time I call GET /api/messages, I should also be triggering a Gmail sync). Ideally, I should also make sure to sync the first 10 messages first before calling GET /api/messages, but merely triggering a sync would be a good scrappy fix for now.

The best way to address this (in addition to the scrappy fix ☝️ ), would be to subscribe to email changes using webhooks.