Understanding Glue Thread Types
In Glue, everything begins with a Thread — the core container for messages, participants, and activity. All conversations, whether a direct message, group chat, or topic-based discussion, are built on this same primitive.
Every message belongs to a Thread, and its ThreadType defines the context. These types aren’t just technical details: they also shape how the conversation appears in the app. Different types have their own interfaces, optimized for their purpose, and may even appear in separate sections so users can tell them apart at a glance.
This shared structure keeps things consistent for developers while giving the platform room to support different behaviors and evolve over time.
Thread Types
The ThreadType
enum defines the different kinds of conversations supported in Glue. Each type controls how recipients are treated, how the thread behaves over time, and how it is displayed in the Glue interface.
enum ThreadType {
thread # or named?
chat
}
thread
thread
A subject-based discussion designed to have a clear lifecycle.
For topic-oriented conversations that benefit from focus and closure.
Can be opened with a subject line and later closed when the discussion is complete.
Behaves like the “classic” threaded model
chat
chat
A persistent chat for a single group or between two users ("DM").
Always associated with either a single user (a DM) or a single group (a group chat)
Not tied to a specific subject
Recipients can't be added or removed, and the thread cannot be closed
Used for ongoing conversations between a set of recipients
Last updated
Was this helpful?