@xuda.io/account_module 1.2.461 → 1.2.462

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 +7 -6
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1292,13 +1292,12 @@ export const get_contacts = async function (req) {
1292
1292
  doc.profile_avatar = account_ret.data.profile_avatar;
1293
1293
 
1294
1294
  doc.card_background = get_contact_background(doc);
1295
- doc.icon_pattern = `xu-pattern.png`;
1295
+
1296
1296
  // doc.telephone = `561-235-1675`;
1297
- if (doc.contact_uid === '0489f946c213947316647b468f029ed9') {
1298
- doc.notifications = 45;
1299
- doc.online = true;
1300
- doc.icon_pattern = `default-pattern.png`;
1301
- }
1297
+
1298
+ // doc.notifications = 45;
1299
+ // doc.online = true;
1300
+ doc.icon_pattern = get_contact_pattern(doc);
1302
1301
  }
1303
1302
  }
1304
1303
 
@@ -1321,6 +1320,7 @@ export const get_contacts = async function (req) {
1321
1320
  continue; // throw new Error(`account ${contact_uid} not found`);
1322
1321
  }
1323
1322
  doc.profile_avatar = account_ret.data.profile_avatar;
1323
+ doc.icon_pattern = get_contact_pattern(doc);
1324
1324
  doc.name = `${account_ret.data.first_name} ${account_ret.data.last_name}`;
1325
1325
  }
1326
1326
  doc.card_background = get_contact_background({ pending: true });
@@ -1342,6 +1342,7 @@ export const get_contacts = async function (req) {
1342
1342
  doc.name = `${account_ret.data.first_name} ${account_ret.data.last_name}`;
1343
1343
  }
1344
1344
  doc.card_background = get_contact_background({ pending: true });
1345
+ doc.icon_pattern = get_contact_pattern(doc);
1345
1346
  requests_from.docs.push(doc);
1346
1347
  }
1347
1348
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.461",
3
+ "version": "1.2.462",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {