polfan-server-js-client 0.2.47 → 0.2.49

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,7 +4,9 @@
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="Update a relationship scheme" />
7
+ <list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Bump version">
8
+ <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
9
+ </list>
8
10
  <option name="SHOW_DIALOG" value="false" />
9
11
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
12
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -121,31 +123,7 @@
121
123
  <workItem from="1752834023436" duration="2601000" />
122
124
  <workItem from="1753062168800" duration="4938000" />
123
125
  <workItem from="1753441064452" duration="1184000" />
124
- <workItem from="1753954931871" duration="8738000" />
125
- </task>
126
- <task id="LOCAL-00001" summary="Emoticons objects">
127
- <option name="closed" value="true" />
128
- <created>1738000298032</created>
129
- <option name="number" value="00001" />
130
- <option name="presentableId" value="LOCAL-00001" />
131
- <option name="project" value="LOCAL" />
132
- <updated>1738000298032</updated>
133
- </task>
134
- <task id="LOCAL-00002" summary="Emoticons objects">
135
- <option name="closed" value="true" />
136
- <created>1738000310264</created>
137
- <option name="number" value="00002" />
138
- <option name="presentableId" value="LOCAL-00002" />
139
- <option name="project" value="LOCAL" />
140
- <updated>1738000310264</updated>
141
- </task>
142
- <task id="LOCAL-00003" summary="Emoticons support">
143
- <option name="closed" value="true" />
144
- <created>1738002489324</created>
145
- <option name="number" value="00003" />
146
- <option name="presentableId" value="LOCAL-00003" />
147
- <option name="project" value="LOCAL" />
148
- <updated>1738002489324</updated>
126
+ <workItem from="1753954931871" duration="14132000" />
149
127
  </task>
150
128
  <task id="LOCAL-00004" summary="Emoticons support">
151
129
  <option name="closed" value="true" />
@@ -515,7 +493,31 @@
515
493
  <option name="project" value="LOCAL" />
516
494
  <updated>1754157638247</updated>
517
495
  </task>
518
- <option name="localTasksCounter" value="50" />
496
+ <task id="LOCAL-00050" summary="Fix a relationship type">
497
+ <option name="closed" value="true" />
498
+ <created>1754173777653</created>
499
+ <option name="number" value="00050" />
500
+ <option name="presentableId" value="LOCAL-00050" />
501
+ <option name="project" value="LOCAL" />
502
+ <updated>1754173777653</updated>
503
+ </task>
504
+ <task id="LOCAL-00051" summary="Fix mutationCounter doesn't increment on delete">
505
+ <option name="closed" value="true" />
506
+ <created>1754176233412</created>
507
+ <option name="number" value="00051" />
508
+ <option name="presentableId" value="LOCAL-00051" />
509
+ <option name="project" value="LOCAL" />
510
+ <updated>1754176233412</updated>
511
+ </task>
512
+ <task id="LOCAL-00052" summary="Changes in chat protocol and schemes">
513
+ <option name="closed" value="true" />
514
+ <created>1754249755333</created>
515
+ <option name="number" value="00052" />
516
+ <option name="presentableId" value="LOCAL-00052" />
517
+ <option name="project" value="LOCAL" />
518
+ <updated>1754249755333</updated>
519
+ </task>
520
+ <option name="localTasksCounter" value="53" />
519
521
  <servers />
520
522
  </component>
521
523
  <component name="TypeScriptGeneratedFilesManager">
@@ -533,9 +535,6 @@
533
535
  </option>
534
536
  </component>
535
537
  <component name="VcsManagerConfiguration">
536
- <MESSAGE value="ClassicText room type" />
537
- <MESSAGE value="Restore support for nullable parameter in permission overwrites id function" />
538
- <MESSAGE value="Bans support" />
539
538
  <MESSAGE value="New scheme of Bye event" />
540
539
  <MESSAGE value="Fix authentication" />
541
540
  <MESSAGE value="Add notify option to Kick command" />
@@ -558,6 +557,9 @@
558
557
  <MESSAGE value="Fix for incorrectly emitted RoomUpdated event" />
559
558
  <MESSAGE value="Relationships support" />
560
559
  <MESSAGE value="Update a relationship scheme" />
561
- <option name="LAST_COMMIT_MESSAGE" value="Update a relationship scheme" />
560
+ <MESSAGE value="Fix a relationship type" />
561
+ <MESSAGE value="Fix mutationCounter doesn't increment on delete" />
562
+ <MESSAGE value="Changes in chat protocol and schemes" />
563
+ <option name="LAST_COMMIT_MESSAGE" value="Changes in chat protocol and schemes" />
562
564
  </component>
563
565
  </project>
@@ -183,9 +183,11 @@ class IndexedCollection {
183
183
  for (const id of ids) {
184
184
  this.items.delete(id);
185
185
  }
186
+ this._mutationCounter++;
186
187
  }
187
188
  deleteAll() {
188
189
  this.items.clear();
190
+ this._mutationCounter++;
189
191
  }
190
192
  findBy(field, valueToFind, limit = null) {
191
193
  const result = new IndexedCollection();
@@ -867,9 +869,8 @@ class MessagesManager {
867
869
  updateLocallyFollowedTopicOnNewMessage(ev) {
868
870
  const roomFollowedTopics = this.followedTopics.get(ev.message.location.roomId);
869
871
  const followedTopic = roomFollowedTopics?.get(ev.message.location.topicId);
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
+ if (!roomFollowedTopics || !followedTopic || ev.message.type === 'Ephemeral') {
873
+ // Skip if we don't follow this room or targeted topic or the message is ephemeral
873
874
  return;
874
875
  }
875
876
  const isMe = ev.message.author.user.id === this.tracker.me?.id;