polfan-server-js-client 0.2.31 → 0.2.33
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 +34 -3
- package/build/index.cjs.js +3 -2
- package/build/index.cjs.js.map +1 -1
- package/build/index.umd.js +1 -1
- package/build/index.umd.js.map +1 -1
- package/build/types/types/src/schemes/Message.d.ts +1 -1
- package/package.json +1 -1
- package/src/state-tracker/MessagesManager.ts +4 -3
- package/src/types/src/schemes/Message.ts +1 -1
package/.idea/workspace.xml
CHANGED
|
@@ -4,7 +4,10 @@
|
|
|
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="
|
|
7
|
+
<list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="New message type">
|
|
8
|
+
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/src/state-tracker/MessagesManager.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/MessagesManager.ts" afterDir="false" />
|
|
10
|
+
</list>
|
|
8
11
|
<option name="SHOW_DIALOG" value="false" />
|
|
9
12
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
10
13
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -97,6 +100,8 @@
|
|
|
97
100
|
<workItem from="1750781391199" duration="2733000" />
|
|
98
101
|
<workItem from="1750982834349" duration="24000" />
|
|
99
102
|
<workItem from="1751050123708" duration="983000" />
|
|
103
|
+
<workItem from="1751060147554" duration="143000" />
|
|
104
|
+
<workItem from="1751159757238" duration="504000" />
|
|
100
105
|
</task>
|
|
101
106
|
<task id="LOCAL-00001" summary="Emoticons objects">
|
|
102
107
|
<option name="closed" value="true" />
|
|
@@ -354,7 +359,31 @@
|
|
|
354
359
|
<option name="project" value="LOCAL" />
|
|
355
360
|
<updated>1751051104070</updated>
|
|
356
361
|
</task>
|
|
357
|
-
<
|
|
362
|
+
<task id="LOCAL-00033" summary="Fix package.json type exports">
|
|
363
|
+
<option name="closed" value="true" />
|
|
364
|
+
<created>1751060289270</created>
|
|
365
|
+
<option name="number" value="00033" />
|
|
366
|
+
<option name="presentableId" value="LOCAL-00033" />
|
|
367
|
+
<option name="project" value="LOCAL" />
|
|
368
|
+
<updated>1751060289270</updated>
|
|
369
|
+
</task>
|
|
370
|
+
<task id="LOCAL-00034" summary="New message type">
|
|
371
|
+
<option name="closed" value="true" />
|
|
372
|
+
<created>1751159817479</created>
|
|
373
|
+
<option name="number" value="00034" />
|
|
374
|
+
<option name="presentableId" value="LOCAL-00034" />
|
|
375
|
+
<option name="project" value="LOCAL" />
|
|
376
|
+
<updated>1751159817479</updated>
|
|
377
|
+
</task>
|
|
378
|
+
<task id="LOCAL-00035" summary="New message type">
|
|
379
|
+
<option name="closed" value="true" />
|
|
380
|
+
<created>1751159850812</created>
|
|
381
|
+
<option name="number" value="00035" />
|
|
382
|
+
<option name="presentableId" value="LOCAL-00035" />
|
|
383
|
+
<option name="project" value="LOCAL" />
|
|
384
|
+
<updated>1751159850812</updated>
|
|
385
|
+
</task>
|
|
386
|
+
<option name="localTasksCounter" value="36" />
|
|
358
387
|
<servers />
|
|
359
388
|
</component>
|
|
360
389
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -391,6 +420,8 @@
|
|
|
391
420
|
<MESSAGE value="Fix module exporting (node + browser)" />
|
|
392
421
|
<MESSAGE value="Fix JoinRoom command response type" />
|
|
393
422
|
<MESSAGE value="Fix package.json exports" />
|
|
394
|
-
<
|
|
423
|
+
<MESSAGE value="Fix package.json type exports" />
|
|
424
|
+
<MESSAGE value="New message type" />
|
|
425
|
+
<option name="LAST_COMMIT_MESSAGE" value="New message type" />
|
|
395
426
|
</component>
|
|
396
427
|
</project>
|
package/build/index.cjs.js
CHANGED
|
@@ -867,8 +867,9 @@ class MessagesManager {
|
|
|
867
867
|
updateLocallyFollowedTopicOnNewMessage(ev) {
|
|
868
868
|
const roomFollowedTopics = this.followedTopics.get(ev.message.location.roomId);
|
|
869
869
|
const followedTopic = roomFollowedTopics?.get(ev.message.location.topicId);
|
|
870
|
-
|
|
871
|
-
|
|
870
|
+
const ephemeralMessageTypes = ['System'];
|
|
871
|
+
if (!roomFollowedTopics || !followedTopic || ephemeralMessageTypes.includes(ev.message.type)) {
|
|
872
|
+
// Skip if we don't follow this room or targeted topic or message is ephemeral
|
|
872
873
|
return;
|
|
873
874
|
}
|
|
874
875
|
const isMe = ev.message.author.user.id === this.tracker.me?.id;
|