@subiz/widget-v4 4.1.156 → 4.1.157

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 (31) hide show
  1. package/compiled_src/chatbox/ChatButton.js +1 -1
  2. package/compiled_src/store/kv.js +0 -2
  3. package/compiled_src/store/store.js +1 -1
  4. package/dist/{1986e37f014.app.js → 19888eff7f5.app.js} +1 -1
  5. package/dist/{1986e37f014.chat.html → 19888eff7f5.chat.html} +1 -1
  6. package/dist/{1986e37f014.chat.js → 19888eff7f5.chat.js} +1 -1
  7. package/dist/{1986e37f014.form.html → 19888eff7f5.form.html} +1 -1
  8. package/dist/{1986e37f014.form.js → 19888eff7f5.form.js} +1 -1
  9. package/dist/{1986e37f014.index.html → 19888eff7f5.index.html} +1 -1
  10. package/dist/{1986e37f014.library.html → 19888eff7f5.library.html} +1 -1
  11. package/dist/{1986e37f014.library.js → 19888eff7f5.library.js} +1 -1
  12. package/dist/{1986e37f014.preview.html → 19888eff7f5.preview.html} +1 -1
  13. package/dist/19888eff7f5.preview.js +1 -0
  14. package/dist/{1986e37f014.webview.js → 19888eff7f5.webview.js} +1 -1
  15. package/dist/HASH +1 -1
  16. package/dist/screenshoot.js +174 -33
  17. package/package.json +1 -1
  18. package/src/chatbox/ChatButton.js +1 -1
  19. package/src/store/kv.js +11 -14
  20. package/src/store/store.js +1 -1
  21. package/dist/1986e37f014.preview.js +0 -1
  22. /package/dist/{1986e37f014.127.js → 19888eff7f5.127.js} +0 -0
  23. /package/dist/{1986e37f014.132.js → 19888eff7f5.132.js} +0 -0
  24. /package/dist/{1986e37f014.185.js → 19888eff7f5.185.js} +0 -0
  25. /package/dist/{1986e37f014.27.js → 19888eff7f5.27.js} +0 -0
  26. /package/dist/{1986e37f014.278.js → 19888eff7f5.278.js} +0 -0
  27. /package/dist/{1986e37f014.339.js → 19888eff7f5.339.js} +0 -0
  28. /package/dist/{1986e37f014.459.js → 19888eff7f5.459.js} +0 -0
  29. /package/dist/{1986e37f014.490.js → 19888eff7f5.490.js} +0 -0
  30. /package/dist/{1986e37f014.74.js → 19888eff7f5.74.js} +0 -0
  31. /package/dist/{1986e37f014.997.js → 19888eff7f5.997.js} +0 -0
@@ -193,7 +193,7 @@ class ChatButton extends _common.Com {
193
193
  if (!agent) agent = this.props.store.matchAgent('*')[byid] || {};
194
194
  agent = _index.default.cloneDeep(agent);
195
195
  agent.fullname = agent.fullname || _index.default.get(account, 'name') || this.props.t('agent');
196
- agent.avatar_url = agent.avatar_url || defaultAvatar;
196
+ agent.avatar_url = agent.avatar_url || account.logo_url || require('../../assets/img/image_default.png');
197
197
  let position = _index.default.get(accountSetting, 'desktop_button.position') || 'right';
198
198
  if (this.props.store.isMobile()) {
199
199
  position = _index.default.get(accountSetting, 'mobile_button.position') || position;
@@ -27,7 +27,6 @@ class _default {
27
27
  init() {
28
28
  if (this.initialized) return;
29
29
  let inmemItemM = {};
30
- console.time('KV' + this.name);
31
30
  let allitems = this.db.all('items');
32
31
  allitems.forEach(function (item) {
33
32
  inmemItemM[item.key] = item.value;
@@ -47,7 +46,6 @@ class _default {
47
46
  this.db.removes('items', [removekeys]);
48
47
  }
49
48
  this.initialized = true;
50
- console.timeEnd('KV' + this.name);
51
49
  }
52
50
  all() {
53
51
  if (this.dead) return [];
@@ -892,9 +892,9 @@ class Store {
892
892
  traffic_source: 'direct',
893
893
  events: [ev]
894
894
  };
895
- this.pubsub.publish('events', ev);
896
895
  this.lightConvos[convoid] = newconvo;
897
896
  this.kv.put('light_convos', this.lightConvos);
897
+ this.pubsub.publish('events', ev);
898
898
  return {
899
899
  convo: newconvo
900
900
  };