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

fix: remove version 17 info in cookbook #3862

Merged
merged 1 commit into from
Jul 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading