polfan-server-js-client 0.2.87 → 0.2.89
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 +48 -54
- package/build/index.cjs.js +17 -0
- 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/state-tracker/RoomsManager.d.ts +1 -0
- package/package.json +1 -1
- package/src/state-tracker/RoomsManager.ts +15 -0
package/.idea/workspace.xml
CHANGED
|
@@ -4,15 +4,8 @@
|
|
|
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="
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/
|
|
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/state-tracker/TopicHistoryWindow.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/build/types/state-tracker/TopicHistoryWindow.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/state-tracker/TopicHistoryWindow.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/TopicHistoryWindow.ts" afterDir="false" />
|
|
15
|
-
<change beforePath="$PROJECT_DIR$/tests/history-window.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/history-window.test.ts" afterDir="false" />
|
|
7
|
+
<list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Remove removed message from Topic last message">
|
|
8
|
+
<change beforePath="$PROJECT_DIR$/src/state-tracker/RoomsManager.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/RoomsManager.ts" afterDir="false" />
|
|
16
9
|
</list>
|
|
17
10
|
<option name="SHOW_DIALOG" value="false" />
|
|
18
11
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -62,31 +55,31 @@
|
|
|
62
55
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
63
56
|
<option name="showLibraryContents" value="true" />
|
|
64
57
|
</component>
|
|
65
|
-
<component name="PropertiesComponent"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
58
|
+
<component name="PropertiesComponent">{
|
|
59
|
+
"keyToString": {
|
|
60
|
+
"RunOnceActivity.MCP Project settings loaded": "true",
|
|
61
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
62
|
+
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager": "true",
|
|
63
|
+
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
|
|
64
|
+
"RunOnceActivity.git.unshallow": "true",
|
|
65
|
+
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
|
66
|
+
"codeWithMe.voiceChat.enabledByDefault": "false",
|
|
67
|
+
"com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1": "true",
|
|
68
|
+
"git-widget-placeholder": "master",
|
|
69
|
+
"ignore.virus.scanning.warn.message": "true",
|
|
70
|
+
"junie.onboarding.icon.badge.shown": "true",
|
|
71
|
+
"last_opened_file_path": "//wsl.localhost/Debian/home/jarek/polfan-js-client-library",
|
|
72
|
+
"node.js.detected.package.eslint": "true",
|
|
73
|
+
"node.js.detected.package.tslint": "true",
|
|
74
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
75
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
76
|
+
"nodejs_package_manager_path": "npm",
|
|
77
|
+
"settings.editor.selected.configurable": "com.github.copilot.settings.chat.ChatConfigurable",
|
|
78
|
+
"to.speed.mode.migration.done": "true",
|
|
79
|
+
"ts.external.directory.path": "\\\\wsl.localhost\\Debian\\home\\jarek\\polfan-js-client-library\\node_modules\\typescript\\lib",
|
|
80
|
+
"vue.rearranger.settings.migration": "true"
|
|
88
81
|
}
|
|
89
|
-
}
|
|
82
|
+
}</component>
|
|
90
83
|
<component name="SharedIndexes">
|
|
91
84
|
<attachedChunks>
|
|
92
85
|
<set>
|
|
@@ -196,23 +189,8 @@
|
|
|
196
189
|
<workItem from="1775641624063" duration="1179000" />
|
|
197
190
|
<workItem from="1776327180094" duration="5055000" />
|
|
198
191
|
<workItem from="1777136687009" duration="3369000" />
|
|
199
|
-
<workItem from="1777301595900" duration="
|
|
200
|
-
|
|
201
|
-
<task id="LOCAL-00037" summary="Dedicated event for user status change">
|
|
202
|
-
<option name="closed" value="true" />
|
|
203
|
-
<created>1751547708628</created>
|
|
204
|
-
<option name="number" value="00037" />
|
|
205
|
-
<option name="presentableId" value="LOCAL-00037" />
|
|
206
|
-
<option name="project" value="LOCAL" />
|
|
207
|
-
<updated>1751547708628</updated>
|
|
208
|
-
</task>
|
|
209
|
-
<task id="LOCAL-00038" summary="Dedicated event for user status change">
|
|
210
|
-
<option name="closed" value="true" />
|
|
211
|
-
<created>1751551734548</created>
|
|
212
|
-
<option name="number" value="00038" />
|
|
213
|
-
<option name="presentableId" value="LOCAL-00038" />
|
|
214
|
-
<option name="project" value="LOCAL" />
|
|
215
|
-
<updated>1751551734548</updated>
|
|
192
|
+
<workItem from="1777301595900" duration="1696000" />
|
|
193
|
+
<workItem from="1778067371586" duration="2266000" />
|
|
216
194
|
</task>
|
|
217
195
|
<task id="LOCAL-00039" summary="Fix update the latest message in a room default topic">
|
|
218
196
|
<option name="closed" value="true" />
|
|
@@ -590,7 +568,23 @@
|
|
|
590
568
|
<option name="project" value="LOCAL" />
|
|
591
569
|
<updated>1776807618896</updated>
|
|
592
570
|
</task>
|
|
593
|
-
<
|
|
571
|
+
<task id="LOCAL-00086" summary="TopicHistoryWindow retainRatio and event handling improvements">
|
|
572
|
+
<option name="closed" value="true" />
|
|
573
|
+
<created>1777303294828</created>
|
|
574
|
+
<option name="number" value="00086" />
|
|
575
|
+
<option name="presentableId" value="LOCAL-00086" />
|
|
576
|
+
<option name="project" value="LOCAL" />
|
|
577
|
+
<updated>1777303294829</updated>
|
|
578
|
+
</task>
|
|
579
|
+
<task id="LOCAL-00087" summary="Remove removed message from Topic last message">
|
|
580
|
+
<option name="closed" value="true" />
|
|
581
|
+
<created>1778068934825</created>
|
|
582
|
+
<option name="number" value="00087" />
|
|
583
|
+
<option name="presentableId" value="LOCAL-00087" />
|
|
584
|
+
<option name="project" value="LOCAL" />
|
|
585
|
+
<updated>1778068934825</updated>
|
|
586
|
+
</task>
|
|
587
|
+
<option name="localTasksCounter" value="88" />
|
|
594
588
|
<servers />
|
|
595
589
|
</component>
|
|
596
590
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -608,8 +602,6 @@
|
|
|
608
602
|
</option>
|
|
609
603
|
</component>
|
|
610
604
|
<component name="VcsManagerConfiguration">
|
|
611
|
-
<MESSAGE value="Update room on recipient user change" />
|
|
612
|
-
<MESSAGE value="Fix websocket state error handling" />
|
|
613
605
|
<MESSAGE value="Collection integration with React JS rework" />
|
|
614
606
|
<MESSAGE value="Update deps and improve library building" />
|
|
615
607
|
<MESSAGE value="Improvements and fixes to collection mirroring" />
|
|
@@ -633,7 +625,9 @@
|
|
|
633
625
|
<MESSAGE value="Delete redacted messages, improve collections, add tests" />
|
|
634
626
|
<MESSAGE value="Fix emitting event with deleted topics" />
|
|
635
627
|
<MESSAGE value="Adjust to ban changes" />
|
|
636
|
-
<
|
|
628
|
+
<MESSAGE value="TopicHistoryWindow retainRatio and event handling improvements" />
|
|
629
|
+
<MESSAGE value="Remove removed message from Topic last message" />
|
|
630
|
+
<option name="LAST_COMMIT_MESSAGE" value="Remove removed message from Topic last message" />
|
|
637
631
|
</component>
|
|
638
632
|
<component name="XSLT-Support.FileAssociations.UIState">
|
|
639
633
|
<expand />
|
package/build/index.cjs.js
CHANGED
|
@@ -2101,6 +2101,9 @@ var RoomsManager = /*#__PURE__*/function () {
|
|
|
2101
2101
|
this.tracker.client.on('NewMessage', function (ev) {
|
|
2102
2102
|
return _this.handleNewMessage(ev);
|
|
2103
2103
|
});
|
|
2104
|
+
this.tracker.client.on('MessagesRedacted', function (ev) {
|
|
2105
|
+
return _this.handleMessagesRedacted(ev);
|
|
2106
|
+
});
|
|
2104
2107
|
this.tracker.client.on('NewTopic', function (ev) {
|
|
2105
2108
|
return _this.handleNewTopic(ev);
|
|
2106
2109
|
});
|
|
@@ -2634,6 +2637,20 @@ var RoomsManager = /*#__PURE__*/function () {
|
|
|
2634
2637
|
}));
|
|
2635
2638
|
}
|
|
2636
2639
|
}
|
|
2640
|
+
}, {
|
|
2641
|
+
key: "handleMessagesRedacted",
|
|
2642
|
+
value: function handleMessagesRedacted(ev) {
|
|
2643
|
+
// Remove redacted messages from topic and update metadata
|
|
2644
|
+
var topics = this.topics.get(ev.location.roomId);
|
|
2645
|
+
var topic = topics === null || topics === void 0 ? void 0 : topics.get(ev.location.topicId);
|
|
2646
|
+
if (topic) {
|
|
2647
|
+
var _topic$lastMessage;
|
|
2648
|
+
topics.set(RoomsManager_objectSpread(RoomsManager_objectSpread({}, topic), {}, {
|
|
2649
|
+
messageCount: Math.max(topic.messageCount - ev.ids.length, 0),
|
|
2650
|
+
lastMessage: ev.ids.includes((_topic$lastMessage = topic.lastMessage) === null || _topic$lastMessage === void 0 ? void 0 : _topic$lastMessage.id) ? null : topic.lastMessage
|
|
2651
|
+
}));
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2637
2654
|
}]);
|
|
2638
2655
|
}();
|
|
2639
2656
|
;// ./src/state-tracker/functions.ts
|