Fetches the messages and writes them in the discussion. By default it won't mark the messages as read even after fetching them.
You can change this behavior by setting markAsRead to true. There's no other way to mark the messages as read.
markAsRead
true
The current session handle.
The discussion object to fetch messages for.
Optional
Whether to mark the messages as read after fetching them.
Fetches the messages and writes them in the discussion. By default it won't mark the messages as read even after fetching them.
You can change this behavior by setting
markAsRead
totrue
. There's no other way to mark the messages as read.