polfan-server-js-client 0.2.40 → 0.2.41
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/.idea/workspace.xml
CHANGED
|
@@ -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="Adapt FilesClient to new files API" />
|
|
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,7 @@
|
|
|
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="
|
|
121
|
+
<workItem from="1752834023436" duration="2601000" />
|
|
130
122
|
</task>
|
|
131
123
|
<task id="LOCAL-00001" summary="Emoticons objects">
|
|
132
124
|
<option name="closed" value="true" />
|
|
@@ -456,7 +448,15 @@
|
|
|
456
448
|
<option name="project" value="LOCAL" />
|
|
457
449
|
<updated>1752756683365</updated>
|
|
458
450
|
</task>
|
|
459
|
-
<
|
|
451
|
+
<task id="LOCAL-00042" summary="Adapt FilesClient to new files API">
|
|
452
|
+
<option name="closed" value="true" />
|
|
453
|
+
<created>1752966028333</created>
|
|
454
|
+
<option name="number" value="00042" />
|
|
455
|
+
<option name="presentableId" value="LOCAL-00042" />
|
|
456
|
+
<option name="project" value="LOCAL" />
|
|
457
|
+
<updated>1752966028333</updated>
|
|
458
|
+
</task>
|
|
459
|
+
<option name="localTasksCounter" value="43" />
|
|
460
460
|
<servers />
|
|
461
461
|
</component>
|
|
462
462
|
<component name="TypeScriptGeneratedFilesManager">
|
package/build/index.cjs.js
CHANGED
|
@@ -1825,7 +1825,8 @@ class EmoticonsManager {
|
|
|
1825
1825
|
this.tracker.client.on('Session', () => this.handleSession());
|
|
1826
1826
|
}
|
|
1827
1827
|
async get(spaceId) {
|
|
1828
|
-
|
|
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
|
-
},
|
|
1838
|
+
}, key);
|
|
1838
1839
|
}
|
|
1839
|
-
await this.emoticonsPromises.get(
|
|
1840
|
-
return this.list.get(
|
|
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;
|