Support collapsed threads in addition to pinned.