@xuda.io/ai_module 1.1.4277 → 1.1.4278

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 -4
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4232,11 +4232,11 @@ export const create_conversation = async function (req, job_id, headers) {
4232
4232
  // write conversation to host after thumbnail update
4233
4233
  // get sender conversation
4234
4234
 
4235
- const sender_conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_obj.id);
4235
+ const conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_obj.id);
4236
4236
  const receiver_app_id = await account_module.get_account_default_project_id(contact_uid_chat_conversation);
4237
-
4238
- let receiver_conversation_doc = await db_module.get_app_couch_doc_native(receiver_app_id, conversation_obj.id);
4239
- receiver_conversation_doc.title = sender_conversation_doc.title;
4237
+ const recipient_account_profile_info = await account_module.get_active_account_profile_info(contact_uid_chat_conversation);
4238
+ let recipient_conversation_doc = await db_module.get_app_couch_doc_native(recipient_account_profile_info.app_id, conversation_obj.id);
4239
+ recipient_conversation_doc.title = conversation_doc.title;
4240
4240
 
4241
4241
  receiver_conversation_doc.thumbnail_request_ts = sender_conversation_doc.thumbnail_request_ts;
4242
4242
  receiver_conversation_doc.chat_image = sender_conversation_doc.chat_image;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4277",
3
+ "version": "1.1.4278",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",