add a comment (#4789)

Co-authored-by: Richard Kuo (Onyx) <rkuo@onyx.app>
This commit is contained in:
rkuo-danswer
2025-05-29 14:11:19 -07:00
committed by GitHub
parent edc2892785
commit 797e113000

View File

@@ -381,6 +381,9 @@ def _message_to_doc(
filtered_thread: ThreadType | None = None
thread_ts = message.get("thread_ts")
if thread_ts:
# NOTE: if thread_ts is present, there's a thread we need to process
# ... otherwise, we can skip it
# skip threads we've already seen, since we've already processed all
# messages in that thread
if thread_ts in seen_thread_ts: