diff options
author | kegsay <kegan@matrix.org> | 2023-04-14 12:32:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 12:32:42 +0100 |
commit | ca63b414da87f7bdb25effffd187d51191a42b3e (patch) | |
tree | d57874c2f8f2508a954125f33a1803fb65b18b06 /setup/mscs | |
parent | 94e81cc3f30b35fb241a7c5d50b4a3554652c58b (diff) |
Update GMSL: use static Check functions (#3052)
Sister PR to https://github.com/matrix-org/gomatrixserverlib/pull/359
A nice side effect is that we don't need to re-parse the events in some
cases.
Diffstat (limited to 'setup/mscs')
-rw-r--r-- | setup/mscs/msc2836/msc2836.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup/mscs/msc2836/msc2836.go b/setup/mscs/msc2836/msc2836.go index e1758920..a12a28b1 100644 --- a/setup/mscs/msc2836/msc2836.go +++ b/setup/mscs/msc2836/msc2836.go @@ -654,11 +654,11 @@ func (rc *reqCtx) injectResponseToRoomserver(res *MSC2836EventRelationshipsRespo messageEvents = append(messageEvents, ev) } } - respState := fclient.RespState{ + respState := &fclient.RespState{ AuthEvents: res.AuthChain, StateEvents: stateEvents, } - eventsInOrder := respState.Events(rc.roomVersion) + eventsInOrder := gomatrixserverlib.LineariseStateResponse(rc.roomVersion, respState) // everything gets sent as an outlier because auth chain events may be disjoint from the DAG // as may the threaded events. var ires []roomserver.InputRoomEvent |