aboutsummaryrefslogtreecommitdiff
path: root/roomserver/api
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-07-21 13:06:32 +0100
committerGitHub <noreply@github.com>2021-07-21 13:06:32 +0100
commitf0f8c7f0553b55c2e83400ca812b9d64bac00511 (patch)
tree1471dd8acc0e514dc0588f96884bc51cc6ab0a2d /roomserver/api
parent2f5e4f59916f9192721928ad2803edc7a6f5d9ac (diff)
Optimise QueryServerJoinedToRoom (#1933)
* Optimise checking if a server is in a room * Fix queries * Fix queries
Diffstat (limited to 'roomserver/api')
-rw-r--r--roomserver/api/query.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/roomserver/api/query.go b/roomserver/api/query.go
index c70db65c..599156bb 100644
--- a/roomserver/api/query.go
+++ b/roomserver/api/query.go
@@ -181,11 +181,8 @@ type QueryServerJoinedToRoomRequest struct {
type QueryServerJoinedToRoomResponse struct {
// True if the room exists on the server
RoomExists bool `json:"room_exists"`
- // True if we still believe that we are participating in the room
+ // True if we still believe that the server is participating in the room
IsInRoom bool `json:"is_in_room"`
- // List of servers that are also in the room. This will not be populated
- // if the queried ServerName is the local server name.
- ServerNames []gomatrixserverlib.ServerName `json:"server_names"`
}
// QueryServerAllowedToSeeEventRequest is a request to QueryServerAllowedToSeeEvent