Skip to content

Commit

Permalink
fix fake operation
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Dec 27, 2024
1 parent 4122f45 commit d3924c3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/fake/src/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,13 @@ export const fakeEndpoints = new Elysia({ prefix: "/fake" })

const inviteEvent = await signEvent(
roomMemberEvent({
auth_events: lastEvent.auth_events,
auth_events: {
// that's not true but it's a fake operation
create: lastEvent.auth_events[0],
power_levels: lastEvent.auth_events[1],
join_rules: lastEvent.auth_events[2],
history_visibility: lastEvent.auth_events[3],
},
membership: "invite",
depth: lastEvent.depth + 1,
// origin: lastEvent.origin,
Expand Down

0 comments on commit d3924c3

Please sign in to comment.