polfan-server-js-client 0.2.107 → 0.2.108

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,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="Bump version" />
7
+ <list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Bump version">
8
+ <change beforePath="$PROJECT_DIR$/src/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/index.ts" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/src/state-tracker/FollowedTopicsManager.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/FollowedTopicsManager.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" />
@@ -227,15 +230,7 @@
227
230
  <workItem from="1783939298935" duration="21428000" />
228
231
  <workItem from="1784102649250" duration="12484000" />
229
232
  <workItem from="1784524117686" duration="79000" />
230
- <workItem from="1784562428378" duration="10671000" />
231
- </task>
232
- <task id="LOCAL-00058" summary="Protocol version support">
233
- <option name="closed" value="true" />
234
- <created>1756053336494</created>
235
- <option name="number" value="00058" />
236
- <option name="presentableId" value="LOCAL-00058" />
237
- <option name="project" value="LOCAL" />
238
- <updated>1756053336494</updated>
233
+ <workItem from="1784562428378" duration="12919000" />
239
234
  </task>
240
235
  <task id="LOCAL-00059" summary="Update room on recipient user change">
241
236
  <option name="closed" value="true" />
@@ -621,7 +616,15 @@
621
616
  <option name="project" value="LOCAL" />
622
617
  <updated>1784995701121</updated>
623
618
  </task>
624
- <option name="localTasksCounter" value="107" />
619
+ <task id="LOCAL-00107" summary="Bump version">
620
+ <option name="closed" value="true" />
621
+ <created>1784998935309</created>
622
+ <option name="number" value="00107" />
623
+ <option name="presentableId" value="LOCAL-00107" />
624
+ <option name="project" value="LOCAL" />
625
+ <updated>1784998935309</updated>
626
+ </task>
627
+ <option name="localTasksCounter" value="108" />
625
628
  <servers />
626
629
  </component>
627
630
  <component name="TypeScriptGeneratedFilesManager">
@@ -2359,7 +2359,7 @@ var FollowedTopicsManager = /*#__PURE__*/function (_EventTarget) {
2359
2359
  key: "summarize",
2360
2360
  value: (function () {
2361
2361
  var _summarize = FollowedTopicsManager_asyncToGenerator(/*#__PURE__*/FollowedTopicsManager_regenerator().m(function _callee6(location) {
2362
- var cacheKey, roomIds, targetTopicId, rooms, mentionCount, isUnread, _iterator2, _step2, roomId, collection, _iterator3, _step3, _topic$mentionCount, topic, result, _t3, _t4;
2362
+ var cacheKey, roomIds, targetTopicId, rooms, mentionCount, unreadTopicCount, _iterator2, _step2, roomId, collection, _iterator3, _step3, _topic$mentionCount, topic, result, _t3, _t4;
2363
2363
  return FollowedTopicsManager_regenerator().w(function (_context6) {
2364
2364
  while (1) switch (_context6.p = _context6.n) {
2365
2365
  case 0:
@@ -2421,7 +2421,7 @@ var FollowedTopicsManager = /*#__PURE__*/function (_EventTarget) {
2421
2421
  });
2422
2422
  case 9:
2423
2423
  mentionCount = 0;
2424
- isUnread = false;
2424
+ unreadTopicCount = 0;
2425
2425
  _iterator2 = FollowedTopicsManager_createForOfIteratorHelper(roomIds);
2426
2426
  _context6.p = 10;
2427
2427
  _iterator2.s();
@@ -2457,7 +2457,7 @@ var FollowedTopicsManager = /*#__PURE__*/function (_EventTarget) {
2457
2457
  return _context6.a(3, 17);
2458
2458
  case 16:
2459
2459
  if (topic.isUnread) {
2460
- isUnread = true;
2460
+ unreadTopicCount++;
2461
2461
  }
2462
2462
  mentionCount += (_topic$mentionCount = topic.mentionCount) !== null && _topic$mentionCount !== void 0 ? _topic$mentionCount : 0;
2463
2463
  case 17:
@@ -2491,7 +2491,8 @@ var FollowedTopicsManager = /*#__PURE__*/function (_EventTarget) {
2491
2491
  case 25:
2492
2492
  result = {
2493
2493
  mentionCount: mentionCount,
2494
- isUnread: isUnread
2494
+ unreadTopicCount: unreadTopicCount,
2495
+ isUnread: unreadTopicCount > 0
2495
2496
  };
2496
2497
  this.summariesCache.set(cacheKey, result);
2497
2498
  return _context6.a(2, result);