@xuda.io/account_module 1.2.511 → 1.2.513
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 +4 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1258,6 +1258,7 @@ const get_contact_border = function (doc) {
|
|
|
1258
1258
|
};
|
|
1259
1259
|
|
|
1260
1260
|
export const get_contact_info = async function (contact_doc, _id) {
|
|
1261
|
+
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
1261
1262
|
let doc = contact_doc;
|
|
1262
1263
|
if (_id) {
|
|
1263
1264
|
doc = await db_module.get_couch_doc_native('xuda_contacts', _id);
|
|
@@ -1291,9 +1292,9 @@ export const get_contact_info = async function (contact_doc, _id) {
|
|
|
1291
1292
|
doc.icon_pattern = get_contact_pattern(doc);
|
|
1292
1293
|
}
|
|
1293
1294
|
|
|
1294
|
-
const chats_ret = await ai_module.get_ai_chats({ uid, reference_id: doc._id });
|
|
1295
|
-
for await (let doc of chats_ret.data.docs) {
|
|
1296
|
-
}
|
|
1295
|
+
// const chats_ret = await ai_module.get_ai_chats({ uid, reference_id: doc._id });
|
|
1296
|
+
// for await (let doc of chats_ret.data.docs) {
|
|
1297
|
+
// }
|
|
1297
1298
|
|
|
1298
1299
|
doc.border = get_contact_border(doc);
|
|
1299
1300
|
if (!doc.name) {
|