aboutsummaryrefslogtreecommitdiff
path: root/clientapi
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-04-28 10:53:07 +0100
committerGitHub <noreply@github.com>2020-04-28 10:53:07 +0100
commit3a858afca2368f588b2681de4f4816f26686f540 (patch)
treedecbd7c588c7d65d005f5f6718522c301d879b30 /clientapi
parent87f05721b07cc6d57bcb4ce1d9ad77a9e1847054 (diff)
Loopback event from invite response (#982)
* Working invite v2 support * Fix copyright notice * Update gomatrixserverlib * Add fallthrough * Add missing continue * Update sytest-whitelist, gomatrixserverlib * Update gomatrixserverlib to test matrix-org/gomatrixserverlib#181 * Update gomatrixserverlib
Diffstat (limited to 'clientapi')
-rw-r--r--clientapi/routing/membership.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/clientapi/routing/membership.go b/clientapi/routing/membership.go
index c597dd27..dff194dd 100644
--- a/clientapi/routing/membership.go
+++ b/clientapi/routing/membership.go
@@ -127,18 +127,18 @@ func SendMembership(
returnData = struct {
RoomID string `json:"room_id"`
}{roomID}
+ fallthrough
default:
- }
-
- _, err = producer.SendEvents(
- req.Context(),
- []gomatrixserverlib.HeaderedEvent{event.Headered(verRes.RoomVersion)},
- cfg.Matrix.ServerName,
- nil,
- )
- if err != nil {
- util.GetLogger(req.Context()).WithError(err).Error("producer.SendEvents failed")
- return jsonerror.InternalServerError()
+ _, err = producer.SendEvents(
+ req.Context(),
+ []gomatrixserverlib.HeaderedEvent{event.Headered(verRes.RoomVersion)},
+ cfg.Matrix.ServerName,
+ nil,
+ )
+ if err != nil {
+ util.GetLogger(req.Context()).WithError(err).Error("producer.SendEvents failed")
+ return jsonerror.InternalServerError()
+ }
}
return util.JSONResponse{