@xuda.io/account_module 1.2.1151 → 1.2.1153
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 +8 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1419,6 +1419,12 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
|
|
|
1419
1419
|
if (doc.connection_type === 'contact_connection') {
|
|
1420
1420
|
doc.friend_since = req_doc.team_req_date;
|
|
1421
1421
|
}
|
|
1422
|
+
if (doc.connection_type === 'account_profile') {
|
|
1423
|
+
try {
|
|
1424
|
+
const account_profile_doc = await db_module.get_couch_doc_native('xuda_accounts', req_doc.share_item_id);
|
|
1425
|
+
doc.account_profile = account_profile_doc;
|
|
1426
|
+
} catch (error) {}
|
|
1427
|
+
}
|
|
1422
1428
|
} catch (err) {
|
|
1423
1429
|
if (err.message === 'deleted') {
|
|
1424
1430
|
try {
|
|
@@ -2611,6 +2617,8 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2611
2617
|
doc.interactions = 0;
|
|
2612
2618
|
doc.chats = 0;
|
|
2613
2619
|
|
|
2620
|
+
doc.online = true;
|
|
2621
|
+
|
|
2614
2622
|
const chats_ret = await ai_module.get_ai_chats({ uid, reference_id: doc._id });
|
|
2615
2623
|
|
|
2616
2624
|
doc.card_background = `linear-gradient(145deg, #242480 0%, #060619 100%)`;
|