@xuda.io/ai_module 1.1.4539 → 1.1.4541
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4260,6 +4260,8 @@ export const submit_chat_conversation = async function (req, job_id, headers) {
|
|
|
4260
4260
|
req.conversation_doc = conversation_doc;
|
|
4261
4261
|
let ret;
|
|
4262
4262
|
if (conversation_doc.reference_type === 'contacts') {
|
|
4263
|
+
req._thread_reentry = Date.now() - conversation_doc.date_created_ts > 60000;
|
|
4264
|
+
|
|
4263
4265
|
account_module.ts_contact(uid, conversation_doc.reference_id);
|
|
4264
4266
|
|
|
4265
4267
|
switch (conversation_doc.conversation_type) {
|
|
@@ -4417,8 +4419,6 @@ const chat_email = async function (req, job_id, headers) {
|
|
|
4417
4419
|
throw new Error('The user profile must include a defined email_account_id');
|
|
4418
4420
|
}
|
|
4419
4421
|
|
|
4420
|
-
const _is_reply = Date.now() - conversation_doc.date_created_ts > 60000;
|
|
4421
|
-
|
|
4422
4422
|
const conversation_id = conversation_doc._id;
|
|
4423
4423
|
const sender_app_id = account_profile_info.app_id;
|
|
4424
4424
|
|