Skip to main content

is_thread_parent

Function is_thread_parent 

Source
fn is_thread_parent(message: &SlackHistoryMessage) -> bool
Expand description

Whether a message is a thread’s parent, which is what decides whose replies the sweep fetches. Slack sends a parent with thread_ts equal to its own ts; thread_ts being present therefore says nothing about whether a message is a reply, and a parent is instead the message that reports replies and is its own thread root.