Log invite event

This commit is contained in:
Half-Shot 2020-05-08 15:57:38 +01:00
parent 17d27331a3
commit bb5cb4537e

View file

@ -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
}