mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-30 21:12:45 +00:00
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.
This commit is contained in:
parent
94e81cc3f3
commit
ca63b414da
6 changed files with 30 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue