From bb5cb4537e70f8f2f722ae3f8b0d8bf579fe1c9c Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Fri, 8 May 2020 15:57:38 +0100 Subject: [PATCH] Log invite event --- roomserver/internal/input_events.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roomserver/internal/input_events.go b/roomserver/internal/input_events.go index a0bfaa2e..b7e57cd4 100644 --- a/roomserver/internal/input_events.go +++ b/roomserver/internal/input_events.go @@ -308,9 +308,13 @@ func buildInviteStrippedState( inviteState := []gomatrixserverlib.InviteV2StrippedState{ gomatrixserverlib.NewInviteV2StrippedState(&input.Event.Event), } + fmt.Printf("INVITE: %+v\n \n", input.Event.Unwrap()) + stateEvents = append(stateEvents, types.Event{Event: input.Event.Unwrap()}) for _, event := range stateEvents { inviteState = append(inviteState, gomatrixserverlib.NewInviteV2StrippedState(&event.Event)) } + fmt.Printf("INVITE STATE: %+v\n \n", inviteState) + return inviteState, nil }