@xuda.io/account_module 1.2.852 → 1.2.853

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 +8 -6
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1268,15 +1268,17 @@ const get_contact_pattern = async function (doc) {
1268
1268
  break;
1269
1269
  }
1270
1270
  }
1271
- } else if (pending && doc?.shared_from_uid) {
1271
+ } else if (doc?.shared_from_uid && (doc.pending || doc.team_req_id)) {
1272
1272
  // pending share request
1273
1273
  const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
1274
1274
  ret = shared_from_uid_ret.data.profile_avatar;
1275
- } else if (doc?.reference_doc?.shared_from_uid) {
1276
- //active share
1277
- const shared_from_uid_ret = await get_account_name({ uid_query: doc.reference_doc.shared_from_uid });
1278
- ret = shared_from_uid_ret.data.profile_avatar;
1279
- } else if (doc.contact_uid) {
1275
+ }
1276
+ // else if (doc?.reference_doc?.shared_from_uid) {
1277
+ // //active share
1278
+ // const shared_from_uid_ret = await get_account_name({ uid_query: doc.reference_doc.shared_from_uid });
1279
+ // ret = shared_from_uid_ret.data.profile_avatar;
1280
+ // }
1281
+ else if (doc.contact_uid) {
1280
1282
  switch (doc.avatar_source) {
1281
1283
  case 'fictional':
1282
1284
  ret = `fictional-avatar-pattern.png`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.852",
3
+ "version": "1.2.853",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {