diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2022-04-11 09:05:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 09:05:23 +0200 |
commit | 69f2ff7c82abe0731a05febde88098f4cd34ab8d (patch) | |
tree | c7e0e2e65550f8b2d3b50e385acc6ac4cdbc90d2 /syncapi/routing | |
parent | b4b2fbc36b1eb1b46640feadbe7e1729c864a898 (diff) |
Correctly use provided filters (#2339)
* Apply filters correctly
* Fix issues; Use prepareWithFilters
* Update gmsl & tests
* go.mod..
* PR comments
Diffstat (limited to 'syncapi/routing')
-rw-r--r-- | syncapi/routing/context.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/syncapi/routing/context.go b/syncapi/routing/context.go index 2412bc2a..aaa0c61b 100644 --- a/syncapi/routing/context.go +++ b/syncapi/routing/context.go @@ -60,7 +60,9 @@ func Context( Headers: nil, } } - filter.Rooms = append(filter.Rooms, roomID) + if filter.Rooms != nil { + *filter.Rooms = append(*filter.Rooms, roomID) + } ctx := req.Context() membershipRes := roomserver.QueryMembershipForUserResponse{} |