From d3924c371040d099978dbfabdc8d737afabdf5a5 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Tue, 24 Dec 2024 10:23:51 -0300 Subject: [PATCH] fix fake operation --- packages/fake/src/room.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/fake/src/room.ts b/packages/fake/src/room.ts index 7f206603..ccbd3da1 100644 --- a/packages/fake/src/room.ts +++ b/packages/fake/src/room.ts @@ -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,