@xuda.io/account_module 1.2.1763 → 1.2.1765

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.
Files changed (2) hide show
  1. package/index.mjs +9 -9
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1176,18 +1176,20 @@ const get_contact_pattern = async function (doc) {
1176
1176
  // }
1177
1177
  // } else
1178
1178
 
1179
- if (doc?.shared_from_uid) {
1180
- //&& (doc.pending || (doc.team_req_id && doc.contact_share_copy))) {
1181
- // pending or active share request
1182
- const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
1183
- ret = shared_from_uid_ret.data.profile_avatar;
1184
- }
1179
+ // if (doc?.shared_from_uid) {
1180
+ // //&& (doc.pending || (doc.team_req_id && doc.contact_share_copy))) {
1181
+ // // pending or active share request
1182
+ // const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
1183
+ // ret = shared_from_uid_ret.data.profile_avatar;
1184
+ // }
1185
+
1185
1186
  // else if (doc?.reference_doc?.shared_from_uid) {
1186
1187
  // //active share
1187
1188
  // const shared_from_uid_ret = await get_account_name({ uid_query: doc.reference_doc.shared_from_uid });
1188
1189
  // ret = shared_from_uid_ret.data.profile_avatar;
1189
1190
  // }
1190
- else if (doc.contact_uid) {
1191
+ // else
1192
+ if (doc.contact_uid) {
1191
1193
  switch (doc.avatar_source) {
1192
1194
  case 'fictional':
1193
1195
  ret = `fictional-avatar-pattern.png`;
@@ -1387,8 +1389,6 @@ export const get_contact_info = async function (uid, contact_doc, _id) {
1387
1389
  doc.email = doc.email;
1388
1390
  }
1389
1391
 
1390
- account_type_info;
1391
-
1392
1392
  doc.is_real_person = doc.account_type_info.is_real_person && doc?.person_info?.person_full_name !== 'Not available';
1393
1393
  doc.icon_pattern = await get_contact_pattern(doc);
1394
1394
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1763",
3
+ "version": "1.2.1765",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {