details: https://code.tryton.org/tryton/commit/c330b80cd2f9
branch: default
user: Cédric Krier <[email protected]>
date: Wed Apr 01 13:07:51 2026 +0200
description:
Store Message-Id of email received on the corresponding chat message
Closes #14730
diffstat:
trytond/trytond/ir/chat.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r b1263c34220e -r c330b80cd2f9 trytond/trytond/ir/chat.py
--- a/trytond/trytond/ir/chat.py Wed Apr 01 13:06:11 2026 +0200
+++ b/trytond/trytond/ir/chat.py Wed Apr 01 13:07:51 2026 +0200
@@ -311,7 +311,8 @@
channel=channel,
email=from_,
audience='public',
- content=cls._email_content(content))
+ content=cls._email_content(content),
+ reference=email.get('Message-ID'))
message.save()
cls.dispatch_message(message, lambda u: u == from_)