Skip to main content

remove_thread

Function remove_thread 

Source
pub fn remove_thread(
    db: &Db,
    project: &str,
    branch: &str,
    id: &str,
) -> Result<bool>
Expand description

Remove the single thread id from (project, branch), dropping the row entirely when it was the last one. Returns whether a thread was removed. Used when the user clears a reopened comment’s text to delete it, so it doesn’t resurrect on the next hydrate.