Skip to content

Commit

Permalink
fix: invite from rc not working
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigok committed Dec 15, 2024
1 parent 0a6b81d commit 348dd89
Showing 1 changed file with 17 additions and 29 deletions.
46 changes: 17 additions & 29 deletions packages/homeserver/src/routes/federation/sendJoinV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,35 +71,23 @@ export const sendJoinV2Route = new Elysia().put(
return result;
},
{
body: t.Object({
type: t.Literal("m.room.member"),
state_key: t.String({
description:
"The user ID for the invite event, generated by the inviting server.",
}),
sender: t.String({
description:
"The user ID for the invite event, generated by the inviting server.",
}),
origin_server_ts: t.Number({
description:
"The user ID for the invite event, generated by the inviting server.",
}),
origin: t.String({
description:
"The user ID for the invite event, generated by the inviting server.",
}),
content: t.Object({
membership: t.String({
description:
"The user ID for the invite event, generated by the inviting server.",
}),
}),
depth: t.Number({
description:
"The user ID for the invite event, generated by the inviting server.",
}),
}),
// body: t.Object({
// type: t.Literal("m.room.member"),
// state_key: t.String(),
// sender: t.String(),
// origin_server_ts: t.Number(),
// origin: t.String(),
// content: t.Object({
// membership: t.String(),
// }),
// depth: t.Number(),
// room_id: t.String(),
// auth_events: t.Array(t.String()),
// prev_events: t.Array(t.String()),
// unsigned: t.Object({
// aget_ts: t.Number()
// })
// }),
params: t.Object(
{
roomId: t.String({
Expand Down

0 comments on commit 348dd89

Please sign in to comment.