From a275edae049764d6c36f9f9464d88d778b71de0a Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 21 Jul 2021 15:09:42 +0100 Subject: [PATCH] Update sytest-whitelist --- clientapi/routing/aliases.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- sytest-whitelist | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/clientapi/routing/aliases.go b/clientapi/routing/aliases.go index 8a2e8199a..0bf14e5c9 100644 --- a/clientapi/routing/aliases.go +++ b/clientapi/routing/aliases.go @@ -50,7 +50,7 @@ func GetAliases( util.GetLogger(req.Context()).WithError(err).Error("historyVisEvent.HistoryVisibility failed") return util.ErrorResponse(fmt.Errorf("historyVisEvent.HistoryVisibility: %w", err)) } - if visibility != "world_readable" { + if visibility != gomatrixserverlib.WorldReadable { queryReq := api.QueryMembershipForUserRequest{ RoomID: roomID, UserID: device.UserID, diff --git a/go.mod b/go.mod index ec17e6444..7e7102822 100644 --- a/go.mod +++ b/go.mod @@ -31,7 +31,7 @@ require ( github.com/matrix-org/go-http-js-libp2p v0.0.0-20200518170932-783164aeeda4 github.com/matrix-org/go-sqlite3-js v0.0.0-20210709140738-b0d1ba599a6d github.com/matrix-org/gomatrix v0.0.0-20210324163249-be2af5ef2e16 - github.com/matrix-org/gomatrixserverlib v0.0.0-20210721094149-75792185bf42 + github.com/matrix-org/gomatrixserverlib v0.0.0-20210721140852-67af3764c4c4 github.com/matrix-org/naffka v0.0.0-20210623111924-14ff508b58e0 github.com/matrix-org/pinecone v0.0.0-20210623102758-74f885644c1b github.com/matrix-org/util v0.0.0-20200807132607-55161520e1d4 diff --git a/go.sum b/go.sum index 86149343a..46e038093 100644 --- a/go.sum +++ b/go.sum @@ -1027,8 +1027,8 @@ github.com/matrix-org/go-sqlite3-js v0.0.0-20210709140738-b0d1ba599a6d/go.mod h1 github.com/matrix-org/gomatrix v0.0.0-20190528120928-7df988a63f26/go.mod h1:3fxX6gUjWyI/2Bt7J1OLhpCzOfO/bB3AiX0cJtEKud0= github.com/matrix-org/gomatrix v0.0.0-20210324163249-be2af5ef2e16 h1:ZtO5uywdd5dLDCud4r0r55eP4j9FuUNpl60Gmntcop4= github.com/matrix-org/gomatrix v0.0.0-20210324163249-be2af5ef2e16/go.mod h1:/gBX06Kw0exX1HrwmoBibFA98yBk/jxKpGVeyQbff+s= -github.com/matrix-org/gomatrixserverlib v0.0.0-20210721094149-75792185bf42 h1:UsCdEX9G3svG07bBV8RKAWIyGzCgJpbX4BCP1n4ezH8= -github.com/matrix-org/gomatrixserverlib v0.0.0-20210721094149-75792185bf42/go.mod h1:JsAzE1Ll3+gDWS9JSUHPJiiyAksvOOnGWF2nXdg4ZzU= +github.com/matrix-org/gomatrixserverlib v0.0.0-20210721140852-67af3764c4c4 h1:uuw87GvlrVshfs2xZVSnuFZpKtnGmJ4pPN+4Lmi3apo= +github.com/matrix-org/gomatrixserverlib v0.0.0-20210721140852-67af3764c4c4/go.mod h1:JsAzE1Ll3+gDWS9JSUHPJiiyAksvOOnGWF2nXdg4ZzU= github.com/matrix-org/naffka v0.0.0-20210623111924-14ff508b58e0 h1:HZCzy4oVzz55e+cOMiX/JtSF2UOY1evBl2raaE7ACcU= github.com/matrix-org/naffka v0.0.0-20210623111924-14ff508b58e0/go.mod h1:sjyPyRxKM5uw1nD2cJ6O2OxI6GOqyVBfNXqKjBZTBZE= github.com/matrix-org/pinecone v0.0.0-20210623102758-74f885644c1b h1:5X5vdWQ13xrNkJVqaJHPsrt7rKkMJH5iac0EtfOuxSg= diff --git a/sytest-whitelist b/sytest-whitelist index 4d0b9fcf5..4cb32f7aa 100644 --- a/sytest-whitelist +++ b/sytest-whitelist @@ -537,3 +537,4 @@ Remote servers should reject attempts by non-creators to set the power levels Federation handles empty auth_events in state_ids sanely Key notary server should return an expired key if it can't find any others Key notary server must not overwrite a valid key with a spurious result from the origin server +GET /rooms/:room_id/aliases lists aliases