messages holds one document per message: a line in the project chat, or a comment or reply in a review comment thread. Only the chat service writes it, in services/chat/app/js/Features/Messages/MessageManager.js. There is no Mongoose schema. Each message belongs to a room in the rooms collection.
Fields
Who Writes It
Who Reads It
Indexes
Notes
- To find the messages of a comment, look up the room by
project_id and thread_id first, then query room_id. The comment id in the doc is the thread_id, not the room_id.
- The text a comment points at is
op.c in docs.ranges.comments; the discussion is here.
Last modified on November 14, 2026