@xuda.io/ai_module 1.1.4470 → 1.1.4472

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.
Files changed (2) hide show
  1. package/index.mjs +4 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4125,10 +4125,12 @@ export const create_conversation = async function (req, job_id, headers) {
4125
4125
 
4126
4126
  await db_module.save_app_couch_doc_native(account_profile_info.app_id, conversation_doc);
4127
4127
  }
4128
- await update_thumbnail('conversation', conversation_doc, account_profile_info.app_id, uid, job_id, headers, null, null, account_profile_info);
4129
-
4128
+ if (perform_ai_execution) {
4129
+ await update_thumbnail('conversation', conversation_doc, account_profile_info.app_id, uid, job_id, headers, null, null, account_profile_info);
4130
+ }
4130
4131
  if (conversation_doc.reference_type === 'contacts') {
4131
4132
  if (recipient_uid) {
4133
+ // valid for chat
4132
4134
  // write conversation to host after thumbnail update
4133
4135
  // get sender conversation
4134
4136
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4470",
3
+ "version": "1.1.4472",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",