@xuda.io/account_module 1.2.1763 → 1.2.1764

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 -7
  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`;
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.1764",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {