@xuda.io/account_module 1.2.516 → 1.2.518
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 +5 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1292,10 +1292,11 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
1294
|
const chats_ret = await ai_module.get_ai_chats({ uid, reference_id: doc._id });
|
|
1295
|
-
for (let
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1295
|
+
for (let chat_doc of chats_ret.data.docs) {
|
|
1296
|
+
doc.notifications += chat_doc.notifications;
|
|
1297
|
+
// for (let msg of doc.messages) {
|
|
1298
|
+
// if (!msg.read) doc.notifications++;
|
|
1299
|
+
// }
|
|
1299
1300
|
}
|
|
1300
1301
|
|
|
1301
1302
|
doc.border = get_contact_border(doc);
|