@xuda.io/account_module 1.2.794 → 1.2.796
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.
- package/index.mjs +18 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1243,7 +1243,6 @@ const get_contact_pattern = async function (doc) {
|
|
|
1243
1243
|
let ret = `default-pattern.png`;
|
|
1244
1244
|
|
|
1245
1245
|
if (doc.my_contact) {
|
|
1246
|
-
debugger;
|
|
1247
1246
|
if (doc.account_type === 'business') {
|
|
1248
1247
|
ret = doc.profile_picture;
|
|
1249
1248
|
} else {
|
|
@@ -1261,7 +1260,7 @@ const get_contact_pattern = async function (doc) {
|
|
|
1261
1260
|
break;
|
|
1262
1261
|
|
|
1263
1262
|
default:
|
|
1264
|
-
ret = `
|
|
1263
|
+
ret = `xu-pattern.png`;
|
|
1265
1264
|
break;
|
|
1266
1265
|
}
|
|
1267
1266
|
}
|
|
@@ -1269,7 +1268,23 @@ const get_contact_pattern = async function (doc) {
|
|
|
1269
1268
|
const shared_from_uid_ret = await get_account_name({ uid_query: doc.shared_from_uid });
|
|
1270
1269
|
ret = shared_from_uid_ret.data.profile_avatar;
|
|
1271
1270
|
} else if (doc.contact_uid) {
|
|
1272
|
-
|
|
1271
|
+
switch (doc.avatar_source) {
|
|
1272
|
+
case 'fictional':
|
|
1273
|
+
ret = `fictional-avatar-pattern.png`;
|
|
1274
|
+
break;
|
|
1275
|
+
|
|
1276
|
+
case 'ai profile':
|
|
1277
|
+
ret = `fictional-avatar-pattern.png`;
|
|
1278
|
+
break;
|
|
1279
|
+
|
|
1280
|
+
case 'authentic profile':
|
|
1281
|
+
ret = `authentic-avatar-pattern.png`;
|
|
1282
|
+
break;
|
|
1283
|
+
|
|
1284
|
+
default:
|
|
1285
|
+
ret = `xu-pattern.png`;
|
|
1286
|
+
break;
|
|
1287
|
+
}
|
|
1273
1288
|
} else {
|
|
1274
1289
|
switch (doc.source) {
|
|
1275
1290
|
case 'email': {
|