Skip to content

Commit e3e0c1d

Browse files
committed
add eventId to set topic endpoint
1 parent 021fac4 commit e3e0c1d

5 files changed

Lines changed: 13 additions & 12 deletions

File tree

apps/meteor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"@rocket.chat/emitter": "^0.32.0",
107107
"@rocket.chat/favicon": "workspace:^",
108108
"@rocket.chat/federation-matrix": "workspace:^",
109-
"@rocket.chat/federation-sdk": "0.7.0-beta.4",
109+
"@rocket.chat/federation-sdk": "0.7.0-beta.5",
110110
"@rocket.chat/fuselage": "~0.81.0",
111111
"@rocket.chat/fuselage-forms": "~1.4.0",
112112
"@rocket.chat/fuselage-hooks": "~0.42.0",

ee/packages/federation-matrix/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@rocket.chat/core-services": "workspace:^",
2323
"@rocket.chat/core-typings": "workspace:^",
2424
"@rocket.chat/emitter": "^0.32.0",
25-
"@rocket.chat/federation-sdk": "0.7.0-beta.4",
25+
"@rocket.chat/federation-sdk": "0.7.0-beta.5",
2626
"@rocket.chat/http-router": "workspace:^",
2727
"@rocket.chat/license": "workspace:^",
2828
"@rocket.chat/models": "workspace:^",

ee/packages/federation-matrix/src/api/_matrix/client/rooms-state.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,11 @@ const putRoomStateEvent = async (roomId: RoomID, eventType: string, senderUserna
124124
};
125125
}
126126
if (eventType === 'm.room.topic' && typeof body.topic === 'string') {
127-
await federationSDK.setRoomTopic(roomId, senderUsername, body.topic);
127+
const event = await federationSDK.setRoomTopic(roomId, senderUsername, body.topic);
128+
128129
return {
129130
statusCode: 200 as const,
130-
body: { event_id: '' },
131+
body: { event_id: event.eventId },
131132
};
132133
}
133134

packages/core-services/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"dependencies": {
2020
"@rocket.chat/core-typings": "workspace:^",
21-
"@rocket.chat/federation-sdk": "0.7.0-beta.4",
21+
"@rocket.chat/federation-sdk": "0.7.0-beta.5",
2222
"@rocket.chat/http-router": "workspace:^",
2323
"@rocket.chat/icons": "^0.48.0",
2424
"@rocket.chat/media-signaling": "workspace:^",

yarn.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8892,7 +8892,7 @@ __metadata:
88928892
dependencies:
88938893
"@rocket.chat/apps": "workspace:^"
88948894
"@rocket.chat/core-typings": "workspace:^"
8895-
"@rocket.chat/federation-sdk": "npm:0.7.0-beta.4"
8895+
"@rocket.chat/federation-sdk": "npm:0.7.0-beta.5"
88968896
"@rocket.chat/http-router": "workspace:^"
88978897
"@rocket.chat/icons": "npm:^0.48.0"
88988898
"@rocket.chat/jest-presets": "workspace:~"
@@ -9105,7 +9105,7 @@ __metadata:
91059105
"@rocket.chat/core-typings": "workspace:^"
91069106
"@rocket.chat/ddp-client": "workspace:^"
91079107
"@rocket.chat/emitter": "npm:^0.32.0"
9108-
"@rocket.chat/federation-sdk": "npm:0.7.0-beta.4"
9108+
"@rocket.chat/federation-sdk": "npm:0.7.0-beta.5"
91099109
"@rocket.chat/http-router": "workspace:^"
91109110
"@rocket.chat/license": "workspace:^"
91119111
"@rocket.chat/models": "workspace:^"
@@ -9134,9 +9134,9 @@ __metadata:
91349134
languageName: unknown
91359135
linkType: soft
91369136

9137-
"@rocket.chat/federation-sdk@npm:0.7.0-beta.4":
9138-
version: 0.7.0-beta.4
9139-
resolution: "@rocket.chat/federation-sdk@npm:0.7.0-beta.4"
9137+
"@rocket.chat/federation-sdk@npm:0.7.0-beta.5":
9138+
version: 0.7.0-beta.5
9139+
resolution: "@rocket.chat/federation-sdk@npm:0.7.0-beta.5"
91409140
dependencies:
91419141
"@datastructures-js/priority-queue": "npm:^6.3.5"
91429142
"@noble/ed25519": "npm:^3.0.0"
@@ -9150,7 +9150,7 @@ __metadata:
91509150
zod: "npm:~4.3.6"
91519151
peerDependencies:
91529152
typescript: ~5.9.2
9153-
checksum: 10/ce59b495003812375d5eef0ca5701044599697f0f8bb809027829f97026cac66aeb0c17bf16c78037543c98704680ace7b7232b85467d144e72de01ffcdd8d70
9153+
checksum: 10/c68ef296e68bfed1efe179f1c4450a7ff16470538366b3288eeee45f0130e596909009de64421a0dbac52f31eee46507f8dccb1f1e330a589baa148deacb98eb
91549154
languageName: node
91559155
linkType: hard
91569156

@@ -9738,7 +9738,7 @@ __metadata:
97389738
"@rocket.chat/emitter": "npm:^0.32.0"
97399739
"@rocket.chat/favicon": "workspace:^"
97409740
"@rocket.chat/federation-matrix": "workspace:^"
9741-
"@rocket.chat/federation-sdk": "npm:0.7.0-beta.4"
9741+
"@rocket.chat/federation-sdk": "npm:0.7.0-beta.5"
97429742
"@rocket.chat/fuselage": "npm:~0.81.0"
97439743
"@rocket.chat/fuselage-forms": "npm:~1.4.0"
97449744
"@rocket.chat/fuselage-hooks": "npm:~0.42.0"

0 commit comments

Comments
 (0)