@xuda.io/account_module 1.2.1156 → 1.2.1157
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 +3 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2618,7 +2618,9 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2618
2618
|
for (const req_obj of ret) {
|
|
2619
2619
|
const account_info_ret = await get_account_name({ uid_query: req_obj.shared_to_uid });
|
|
2620
2620
|
online = account_info_ret.data.online;
|
|
2621
|
+
if (online) break;
|
|
2621
2622
|
}
|
|
2623
|
+
return online;
|
|
2622
2624
|
};
|
|
2623
2625
|
|
|
2624
2626
|
doc.avatar_source = account_info_ret.data.avatar_source;
|
|
@@ -2627,7 +2629,7 @@ export const get_account_profile_info = async function (uid, contact_profile_doc
|
|
|
2627
2629
|
doc.interactions = 0;
|
|
2628
2630
|
doc.chats = 0;
|
|
2629
2631
|
|
|
2630
|
-
doc.online =
|
|
2632
|
+
doc.online = await get_online();
|
|
2631
2633
|
|
|
2632
2634
|
const chats_ret = await ai_module.get_ai_chats({ uid, reference_id: doc._id });
|
|
2633
2635
|
|