knocklabs / javascript

Official JavaScript packages for interacting with Knock
https://knock.app/
MIT License
10 stars 2 forks source link

Feature request: Mark all read as archived #58

Closed sergioperezf closed 4 months ago

sergioperezf commented 4 months ago

Sometimes users want to remove all read notifications from sight. I know I can pass a list of notifications into the markAsArchived function, but with pagination this is cumbersome. I'd be nice to have it in the client.

connorlindsey commented 4 months ago

Hi, this is currently supported by the API and client. You can use the markAllAsSeen method on the client to do this. Here are the docs for that method.

Here are the docs for bulk updating messages to a given status (e.g. read).