polfan-server-js-client 0.2.40 → 0.2.42

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.
@@ -4,15 +4,7 @@
4
4
  <option name="autoReloadType" value="SELECTIVE" />
5
5
  </component>
6
6
  <component name="ChangeListManager">
7
- <list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Adapt FilesClient to new files API">
8
- <change beforePath="$PROJECT_DIR$/build/index.cjs.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.cjs.js" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/build/index.cjs.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.cjs.js.map" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/build/index.umd.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.umd.js" afterDir="false" />
11
- <change beforePath="$PROJECT_DIR$/build/index.umd.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.umd.js.map" afterDir="false" />
12
- <change beforePath="$PROJECT_DIR$/build/types/FilesClient.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/build/types/FilesClient.d.ts" afterDir="false" />
13
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
14
- <change beforePath="$PROJECT_DIR$/src/FilesClient.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/FilesClient.ts" afterDir="false" />
15
- </list>
7
+ <list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Fix global emoticons support" />
16
8
  <option name="SHOW_DIALOG" value="false" />
17
9
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
18
10
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -126,7 +118,8 @@
126
118
  <workItem from="1751811595978" duration="792000" />
127
119
  <workItem from="1752705788150" duration="3566000" />
128
120
  <workItem from="1752756543261" duration="1956000" />
129
- <workItem from="1752834023436" duration="2416000" />
121
+ <workItem from="1752834023436" duration="2601000" />
122
+ <workItem from="1753062168800" duration="2501000" />
130
123
  </task>
131
124
  <task id="LOCAL-00001" summary="Emoticons objects">
132
125
  <option name="closed" value="true" />
@@ -456,7 +449,23 @@
456
449
  <option name="project" value="LOCAL" />
457
450
  <updated>1752756683365</updated>
458
451
  </task>
459
- <option name="localTasksCounter" value="42" />
452
+ <task id="LOCAL-00042" summary="Adapt FilesClient to new files API">
453
+ <option name="closed" value="true" />
454
+ <created>1752966028333</created>
455
+ <option name="number" value="00042" />
456
+ <option name="presentableId" value="LOCAL-00042" />
457
+ <option name="project" value="LOCAL" />
458
+ <updated>1752966028333</updated>
459
+ </task>
460
+ <task id="LOCAL-00043" summary="Fix global emoticons support">
461
+ <option name="closed" value="true" />
462
+ <created>1753062311408</created>
463
+ <option name="number" value="00043" />
464
+ <option name="presentableId" value="LOCAL-00043" />
465
+ <option name="project" value="LOCAL" />
466
+ <updated>1753062311409</updated>
467
+ </task>
468
+ <option name="localTasksCounter" value="44" />
460
469
  <servers />
461
470
  </component>
462
471
  <component name="TypeScriptGeneratedFilesManager">
@@ -498,6 +507,7 @@
498
507
  <MESSAGE value="Dedicated event for user status change" />
499
508
  <MESSAGE value="Fix update the latest message in a room default topic" />
500
509
  <MESSAGE value="Adapt FilesClient to new files API" />
501
- <option name="LAST_COMMIT_MESSAGE" value="Adapt FilesClient to new files API" />
510
+ <MESSAGE value="Fix global emoticons support" />
511
+ <option name="LAST_COMMIT_MESSAGE" value="Fix global emoticons support" />
502
512
  </component>
503
513
  </project>
@@ -1825,7 +1825,8 @@ class EmoticonsManager {
1825
1825
  this.tracker.client.on('Session', () => this.handleSession());
1826
1826
  }
1827
1827
  async get(spaceId) {
1828
- if (this.emoticonsPromises.notExist(spaceId)) {
1828
+ const key = spaceId ?? GLOBAL_KEY;
1829
+ if (this.emoticonsPromises.notExist(key)) {
1829
1830
  this.emoticonsPromises.registerByFunction(async () => {
1830
1831
  const result = await this.tracker.client.send('GetEmoticons', {
1831
1832
  spaceId
@@ -1834,10 +1835,10 @@ class EmoticonsManager {
1834
1835
  throw result.error;
1835
1836
  }
1836
1837
  this.handleEmoticons(result.data);
1837
- }, spaceId ?? GLOBAL_KEY);
1838
+ }, key);
1838
1839
  }
1839
- await this.emoticonsPromises.get(spaceId);
1840
- return this.list.get(spaceId);
1840
+ await this.emoticonsPromises.get(key);
1841
+ return this.list.get(key);
1841
1842
  }
1842
1843
  handleEmoticons(event) {
1843
1844
  const spaceId = event.location.spaceId ?? GLOBAL_KEY;