[fix] [minor] support ticket threading
diff --git a/support/doctype/support_ticket/get_support_mails.py b/support/doctype/support_ticket/get_support_mails.py
index 02f7ea8..4dcb59e 100644
--- a/support/doctype/support_ticket/get_support_mails.py
+++ b/support/doctype/support_ticket/get_support_mails.py
@@ -28,7 +28,7 @@
new_ticket = True
ticket = add_support_communication(mail.subject, mail.content, mail.from_email,
- docname=thread_id if new_ticket else None, mail=mail)
+ docname=None if new_ticket else thread_id, mail=mail)
if new_ticket and cint(self.email_settings.send_autoreply) and \
"mailer-daemon" not in mail.from_email.lower():