diff options
author | devonh <devon.dmytro@gmail.com> | 2023-05-31 15:27:08 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-31 15:27:08 +0000 |
commit | cbdc601f1b6d1c2a648b69ff44b3a49916f4d31a (patch) | |
tree | 6d14c55508579211e3833cab60cfdfea3fab04a6 /federationapi | |
parent | 61341aca500ec4d87e5b6d4c3f965c3836d6e6d6 (diff) |
Move CreateRoom logic to Roomserver (#3093)
Move create room logic over to roomserver.
Diffstat (limited to 'federationapi')
-rw-r--r-- | federationapi/routing/join.go | 2 | ||||
-rw-r--r-- | federationapi/routing/leave.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go index 4cbfc5e8..03d3309a 100644 --- a/federationapi/routing/join.go +++ b/federationapi/routing/join.go @@ -121,7 +121,7 @@ func MakeJoin( queryRes := api.QueryLatestEventsAndStateResponse{ RoomVersion: roomVersion, } - event, err := eventutil.QueryAndBuildEvent(httpReq.Context(), proto, cfg.Matrix, identity, time.Now(), rsAPI, &queryRes) + event, err := eventutil.QueryAndBuildEvent(httpReq.Context(), proto, identity, time.Now(), rsAPI, &queryRes) switch e := err.(type) { case nil: case eventutil.ErrRoomNoExists: diff --git a/federationapi/routing/leave.go b/federationapi/routing/leave.go index 3e576e09..a767168d 100644 --- a/federationapi/routing/leave.go +++ b/federationapi/routing/leave.go @@ -66,7 +66,7 @@ func MakeLeave( } queryRes := api.QueryLatestEventsAndStateResponse{} - event, err := eventutil.QueryAndBuildEvent(httpReq.Context(), proto, cfg.Matrix, identity, time.Now(), rsAPI, &queryRes) + event, err := eventutil.QueryAndBuildEvent(httpReq.Context(), proto, identity, time.Now(), rsAPI, &queryRes) switch e := err.(type) { case nil: case eventutil.ErrRoomNoExists: |