According to the docs using this function should successfully mark a channel as read, and when implementing it, the api call seems to work (getting a 200 as response), but for some reason it is not updating the UI correctly until complete refresh is done, In other words the UI keep marking a notification in that channel, even after the function is executed.
async function markAsRead() {
await channel.markAsRead()
}