polfan-server-js-client 0.2.32 → 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
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" />
|
|
@@ -98,6 +101,7 @@
|
|
|
98
101
|
<workItem from="1750982834349" duration="24000" />
|
|
99
102
|
<workItem from="1751050123708" duration="983000" />
|
|
100
103
|
<workItem from="1751060147554" duration="143000" />
|
|
104
|
+
<workItem from="1751159757238" duration="504000" />
|
|
101
105
|
</task>
|
|
102
106
|
<task id="LOCAL-00001" summary="Emoticons objects">
|
|
103
107
|
<option name="closed" value="true" />
|
|
@@ -363,7 +367,23 @@
|
|
|
363
367
|
<option name="project" value="LOCAL" />
|
|
364
368
|
<updated>1751060289270</updated>
|
|
365
369
|
</task>
|
|
366
|
-
<
|
|
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" />
|
|
367
387
|
<servers />
|
|
368
388
|
</component>
|
|
369
389
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -401,6 +421,7 @@
|
|
|
401
421
|
<MESSAGE value="Fix JoinRoom command response type" />
|
|
402
422
|
<MESSAGE value="Fix package.json exports" />
|
|
403
423
|
<MESSAGE value="Fix package.json type exports" />
|
|
404
|
-
<
|
|
424
|
+
<MESSAGE value="New message type" />
|
|
425
|
+
<option name="LAST_COMMIT_MESSAGE" value="New message type" />
|
|
405
426
|
</component>
|
|
406
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;
|