Use historyId as filter instead of threadId