@xuda.io/account_module 1.2.1755 → 1.2.1757

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
@@ -1140,6 +1140,12 @@ const get_contact_background = function (doc) {
1140
1140
  const get_contact_pattern = async function (doc) {
1141
1141
  let ret = `default-pattern.png`;
1142
1142
 
1143
+ if (doc.account_type === 'business') {
1144
+ if (doc?.account_type_info?.is_real_person && doc?.person_info?.person_full_name !== 'Not available') {
1145
+ ret = doc.profile_picture;
1146
+ }
1147
+ }
1148
+
1143
1149
  // if (doc.my_contact) {
1144
1150
  // if (doc.account_type === 'business') {
1145
1151
  // 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.1755",
3
+ "version": "1.2.1757",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {