Documentation Index
Fetch the complete documentation index at: https://docs.velt.dev/llms.txt
Use this file to discover all available pages before exploring further.
Mark Comments as Read or Unread
UsemarkAsRead() and markAsUnread() to programmatically control read/unread state of comment annotations — useful for custom notification badges, read receipts, or “mark all as read” actions.
API Methods:
- These methods affect the current user’s read state only
- Unread badges on
VeltCommentBubble(commentCountType=“unread”) update automatically - Sidebar unread filters reflect the change in real-time
- Combine with
getUnreadCommentCountOnCurrentDocument()to build custom unread indicators
- Annotation IDs are valid strings
- Unread badges update after calling markAsRead/markAsUnread
- Used in combination with unread count subscriptions for UI updates

