polfan-server-js-client 0.2.45 → 0.2.47
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 +13 -5
- package/build/index.cjs.js +1 -1
- 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/UserRelationship.d.ts +3 -5
- package/package.json +1 -1
- package/src/state-tracker/RelationshipsManager.ts +1 -1
- package/src/types/src/schemes/UserRelationship.ts +4 -5
package/.idea/workspace.xml
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
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="Update a relationship scheme" />
|
|
8
8
|
<option name="SHOW_DIALOG" value="false" />
|
|
9
9
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
10
10
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
<workItem from="1752834023436" duration="2601000" />
|
|
122
122
|
<workItem from="1753062168800" duration="4938000" />
|
|
123
123
|
<workItem from="1753441064452" duration="1184000" />
|
|
124
|
-
<workItem from="1753954931871" duration="
|
|
124
|
+
<workItem from="1753954931871" duration="8738000" />
|
|
125
125
|
</task>
|
|
126
126
|
<task id="LOCAL-00001" summary="Emoticons objects">
|
|
127
127
|
<option name="closed" value="true" />
|
|
@@ -507,7 +507,15 @@
|
|
|
507
507
|
<option name="project" value="LOCAL" />
|
|
508
508
|
<updated>1754149839341</updated>
|
|
509
509
|
</task>
|
|
510
|
-
<
|
|
510
|
+
<task id="LOCAL-00049" summary="Update a relationship scheme">
|
|
511
|
+
<option name="closed" value="true" />
|
|
512
|
+
<created>1754157638247</created>
|
|
513
|
+
<option name="number" value="00049" />
|
|
514
|
+
<option name="presentableId" value="LOCAL-00049" />
|
|
515
|
+
<option name="project" value="LOCAL" />
|
|
516
|
+
<updated>1754157638247</updated>
|
|
517
|
+
</task>
|
|
518
|
+
<option name="localTasksCounter" value="50" />
|
|
511
519
|
<servers />
|
|
512
520
|
</component>
|
|
513
521
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -525,7 +533,6 @@
|
|
|
525
533
|
</option>
|
|
526
534
|
</component>
|
|
527
535
|
<component name="VcsManagerConfiguration">
|
|
528
|
-
<MESSAGE value="Permission related changes in protocol types" />
|
|
529
536
|
<MESSAGE value="ClassicText room type" />
|
|
530
537
|
<MESSAGE value="Restore support for nullable parameter in permission overwrites id function" />
|
|
531
538
|
<MESSAGE value="Bans support" />
|
|
@@ -550,6 +557,7 @@
|
|
|
550
557
|
<MESSAGE value="Update schemes" />
|
|
551
558
|
<MESSAGE value="Fix for incorrectly emitted RoomUpdated event" />
|
|
552
559
|
<MESSAGE value="Relationships support" />
|
|
553
|
-
<
|
|
560
|
+
<MESSAGE value="Update a relationship scheme" />
|
|
561
|
+
<option name="LAST_COMMIT_MESSAGE" value="Update a relationship scheme" />
|
|
554
562
|
</component>
|
|
555
563
|
</project>
|
package/build/index.cjs.js
CHANGED
|
@@ -1919,7 +1919,7 @@ function RelationshipsManager_toPrimitive(input, hint) { if (typeof input !== "o
|
|
|
1919
1919
|
|
|
1920
1920
|
|
|
1921
1921
|
const getId = (refUserId, type) => `${refUserId}-${type}`;
|
|
1922
|
-
const getIdFromRelationship = relationship => getId(relationship.
|
|
1922
|
+
const getIdFromRelationship = relationship => getId(relationship.refUser.id, relationship.type);
|
|
1923
1923
|
class RelationshipsManager {
|
|
1924
1924
|
constructor(tracker) {
|
|
1925
1925
|
this.tracker = tracker;
|