@celljs/ta-org 4.52.0 → 4.53.0
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/host/index.mjs +7 -3
- package/package.json +4 -4
package/host/index.mjs
CHANGED
|
@@ -786,7 +786,6 @@ class OrgOffice {
|
|
|
786
786
|
await this.space.rooms.setState(room.id, OrgKeys.of(AGENT_KEY, request.member), null).catch(() => {
|
|
787
787
|
return;
|
|
788
788
|
});
|
|
789
|
-
await this.forget(request.member, room.id);
|
|
790
789
|
}
|
|
791
790
|
async leave(request) {
|
|
792
791
|
const { room, self } = await this.own(request.room);
|
|
@@ -799,10 +798,15 @@ class OrgOffice {
|
|
|
799
798
|
await this.space.rooms.setState(room.id, OrgKeys.of(AGENT_KEY, self), null).catch(() => {
|
|
800
799
|
return;
|
|
801
800
|
});
|
|
801
|
+
const data = await this.space.data();
|
|
802
|
+
const hosted = data.hosted.filter((each) => each.org === room.id);
|
|
803
|
+
if (hosted.length) {
|
|
804
|
+
await this.options.recall?.(hosted);
|
|
805
|
+
}
|
|
802
806
|
await this.space.rooms.leave(room.id);
|
|
803
|
-
await this.forget(
|
|
807
|
+
await this.forget(room.id);
|
|
804
808
|
}
|
|
805
|
-
async forget(
|
|
809
|
+
async forget(room) {
|
|
806
810
|
const data = await this.space.data();
|
|
807
811
|
const { [room]: _gone, ...orgs } = data.orgs;
|
|
808
812
|
await this.space.store.write({ ...data, orgs, hosted: data.hosted.filter((each) => each.org !== room) });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-org",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.53.0",
|
|
4
4
|
"description": "A pi package for Ta: an enterprise directory over an end-to-end encrypted room of the company's own Ta, with departments, leads, onboarding approved by an admin, agents published to the directory and pulled into a group chat",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@celljs/ta-protocol": "4.
|
|
31
|
-
"@celljs/ta-relay": "4.
|
|
32
|
-
"@celljs/ta-web": "4.
|
|
30
|
+
"@celljs/ta-protocol": "4.53.0",
|
|
31
|
+
"@celljs/ta-relay": "4.53.0",
|
|
32
|
+
"@celljs/ta-web": "4.53.0",
|
|
33
33
|
"@types/react": "^19.3.3"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|