@xuda.io/ai_module 1.1.5540 → 1.1.5542
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +2 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4019,7 +4019,7 @@ const chat_email = async function (req, job_id, headers) {
|
|
|
4019
4019
|
// }
|
|
4020
4020
|
let conversation_item_reference_id;
|
|
4021
4021
|
try {
|
|
4022
|
-
conversation_item_reference_id = await add_conversation_item(uid, profile_id, conversation_id, body, 'email', conversation_doc.reference_id, { direction });
|
|
4022
|
+
conversation_item_reference_id = await add_conversation_item(uid, profile_id, conversation_id, body, 'email', conversation_doc.reference_id, { direction, from_mailbox });
|
|
4023
4023
|
|
|
4024
4024
|
report_ai_status('conversations');
|
|
4025
4025
|
} catch (err) {
|
|
@@ -5083,6 +5083,7 @@ const add_conversation_item = async function (uid, profile_id, conversation_id,
|
|
|
5083
5083
|
break;
|
|
5084
5084
|
|
|
5085
5085
|
case 'email':
|
|
5086
|
+
// direction, from_mailbox
|
|
5086
5087
|
text += `: ${body}`;
|
|
5087
5088
|
break;
|
|
5088
5089
|
|