mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-06 03:53:39 +00:00
Log invite event
This commit is contained in:
parent
17d27331a3
commit
bb5cb4537e
1 changed files with 4 additions and 0 deletions
|
@ -308,9 +308,13 @@ func buildInviteStrippedState(
|
||||||
inviteState := []gomatrixserverlib.InviteV2StrippedState{
|
inviteState := []gomatrixserverlib.InviteV2StrippedState{
|
||||||
gomatrixserverlib.NewInviteV2StrippedState(&input.Event.Event),
|
gomatrixserverlib.NewInviteV2StrippedState(&input.Event.Event),
|
||||||
}
|
}
|
||||||
|
fmt.Printf("INVITE: %+v\n \n", input.Event.Unwrap())
|
||||||
|
|
||||||
stateEvents = append(stateEvents, types.Event{Event: input.Event.Unwrap()})
|
stateEvents = append(stateEvents, types.Event{Event: input.Event.Unwrap()})
|
||||||
for _, event := range stateEvents {
|
for _, event := range stateEvents {
|
||||||
inviteState = append(inviteState, gomatrixserverlib.NewInviteV2StrippedState(&event.Event))
|
inviteState = append(inviteState, gomatrixserverlib.NewInviteV2StrippedState(&event.Event))
|
||||||
}
|
}
|
||||||
|
fmt.Printf("INVITE STATE: %+v\n \n", inviteState)
|
||||||
|
|
||||||
return inviteState, nil
|
return inviteState, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue