@xuda.io/account_module 1.2.1760 → 1.2.1761

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 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1140,6 +1140,15 @@ const get_contact_background = function (doc) {
1140
1140
  const get_contact_pattern = async function (doc) {
1141
1141
  let ret = `default-pattern.png`;
1142
1142
  debugger;
1143
+
1144
+ if (doc?.shared_from_uid) {
1145
+ //&& (doc.pending || (doc.team_req_id && doc.contact_share_copy))) {
1146
+ // pending or active share request
1147
+ const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
1148
+ ret = shared_from_uid_ret.data.profile_avatar;
1149
+ } else {
1150
+ }
1151
+
1143
1152
  if (doc.account_type === 'business') {
1144
1153
  if (doc?.is_real_person) {
1145
1154
  ret = doc.profile_picture;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1760",
3
+ "version": "1.2.1761",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {