@xuda.io/ai_module 1.1.4686 → 1.1.4687
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 +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1978,7 +1978,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
|
|
|
1978
1978
|
|
|
1979
1979
|
doc.privilege = doc.uid === uid || doc?.account_profile_info?.uid === uid;
|
|
1980
1980
|
|
|
1981
|
-
if (reference_id) {
|
|
1981
|
+
if (reference_id && doc.reference_type === 'contact') {
|
|
1982
1982
|
// only valid for contacts conversation
|
|
1983
1983
|
doc.background = get_conversation_background(doc);
|
|
1984
1984
|
}
|