Skip to content

Commit 5b05554

Browse files
committed
move calling method of startJoiningRoom
1 parent a5c2c95 commit 5b05554

File tree

1 file changed

+8
-10
lines changed
  • ee/packages/federation-matrix/src/api/_matrix

1 file changed

+8
-10
lines changed

ee/packages/federation-matrix/src/api/_matrix/invite.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -356,16 +356,14 @@ export const getMatrixInviteRoutes = (services: HomeserverServices) => {
356356
// we first return 200 and then we join the room
357357
// this helps the other side giving extra time to store the invite event
358358

359-
c.env.res.on('finish', () => {
360-
setTimeout(() => {
361-
void startJoiningRoom({
362-
inviteEvent,
363-
user: ourUser,
364-
room,
365-
state,
366-
});
367-
}, 2000);
368-
});
359+
setTimeout(() => {
360+
void startJoiningRoom({
361+
inviteEvent,
362+
user: ourUser,
363+
room,
364+
state,
365+
});
366+
}, 2000);
369367

370368
return {
371369
body: {

0 commit comments

Comments
 (0)