@xuda.io/account_module 1.2.454 → 1.2.456

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 +6 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1169,6 +1169,10 @@ export const merge_contact = async function (req) {
1169
1169
  const get_contact_background = function (doc) {
1170
1170
  const ret = `linear-gradient(145deg,#60496e8c 0%,#71C4FF44 100%)`;
1171
1171
 
1172
+ if (doc.pending) {
1173
+ ret = `linear-gradient(145deg, #4f4f4f8c 0%, #0e0f0f44 100%);`;
1174
+ }
1175
+
1172
1176
  return ret;
1173
1177
  };
1174
1178
 
@@ -1265,6 +1269,7 @@ export const get_contacts = async function (req) {
1265
1269
  doc.profile_avatar = account_ret.data.profile_avatar;
1266
1270
  doc.name = `${account_ret.data.first_name} ${account_ret.data.last_name}`;
1267
1271
  }
1272
+ doc.card_background = get_contact_background({ pending: true });
1268
1273
  requests_to.docs.push(doc);
1269
1274
  }
1270
1275
 
@@ -1282,6 +1287,7 @@ export const get_contacts = async function (req) {
1282
1287
  doc.profile_avatar = account_ret.data.profile_avatar;
1283
1288
  doc.name = `${account_ret.data.first_name} ${account_ret.data.last_name}`;
1284
1289
  }
1290
+ doc.card_background = get_contact_background({ pending: true });
1285
1291
  requests_from.docs.push(doc);
1286
1292
  }
1287
1293
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.454",
3
+ "version": "1.2.456",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {