Skip to content

Commit

Permalink
Merge pull request #3862 from novuhq/fix/remove-version-17-info
Browse files Browse the repository at this point in the history
fix: remove version 17 info in cookbook
  • Loading branch information
jainpawan21 committed Jul 27, 2023
2 parents e2813b2 + 9ed9aa4 commit 4edb5cc
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions docs/docs/cookbook/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const { data: inAppMessages } = await novu.subscribers.getNotificationsFeed('sub

// seen and read filter of type boolean
seen: true,
read: true
read: true,
});
```

Expand Down Expand Up @@ -138,20 +138,14 @@ const { data: markMessageAsSeen } = await novu.subscribers.markMessageSeen(

You can mark an In-App message as read/unread/seen/unseen. Messages from other channels: **Email**, **Push**, **Chat**, **Sms** can't be marked as read/unread/seen/unseen.

:::info
The unread/unseen functionality has yet to be available in the Node.js SDK. Please use [the API](https://docs.novu.co/api/mark-a-subscriber-feed-message-as-seen/) to accomplish this task. It will be in the 0.17.0 release.
:::

<Tabs groupId="language" queryString>
<TabItem value="js" label="Node.js">

```javascript
// this method will be available in 0.17.1
const { data: markMessageAs } = await novu.subscribers.markMessageAs(
'subscriberId',
'messageId',
{ seen: true, read: false }
);
const { data: markMessageAs } = await novu.subscribers.markMessageAs('subscriberId', 'messageId', {
seen: true,
read: false,
});
```

</TabItem>
Expand Down

0 comments on commit 4edb5cc

Please sign in to comment.