aboutsummaryrefslogtreecommitdiff
path: root/roomserver/api
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-06-11 15:07:16 +0100
committerGitHub <noreply@github.com>2020-06-11 15:07:16 +0100
commit25cd2dd1c925fa0c1eeb27a3cd71e668344102ad (patch)
tree9635d69896a9b8ff548a6708d6ad2e2430309d0d /roomserver/api
parent89d61c487751e4beca71d396d719758ae4a98332 (diff)
Remove unused internal APIs (#1117)
Diffstat (limited to 'roomserver/api')
-rw-r--r--roomserver/api/api.go7
-rw-r--r--roomserver/api/query.go17
2 files changed, 0 insertions, 24 deletions
diff --git a/roomserver/api/api.go b/roomserver/api/api.go
index aefe55bc..3a2ad059 100644
--- a/roomserver/api/api.go
+++ b/roomserver/api/api.go
@@ -65,13 +65,6 @@ type RoomserverInternalAPI interface {
response *QueryMembershipsForRoomResponse,
) error
- // Query a list of invite event senders for a user in a room.
- QueryInvitesForUser(
- ctx context.Context,
- request *QueryInvitesForUserRequest,
- response *QueryInvitesForUserResponse,
- ) error
-
// Query whether a server is allowed to see an event
QueryServerAllowedToSeeEvent(
ctx context.Context,
diff --git a/roomserver/api/query.go b/roomserver/api/query.go
index dc005c77..c9a46ae9 100644
--- a/roomserver/api/query.go
+++ b/roomserver/api/query.go
@@ -140,23 +140,6 @@ type QueryMembershipsForRoomResponse struct {
HasBeenInRoom bool `json:"has_been_in_room"`
}
-// QueryInvitesForUserRequest is a request to QueryInvitesForUser
-type QueryInvitesForUserRequest struct {
- // The room ID to look up invites in.
- RoomID string `json:"room_id"`
- // The User ID to look up invites for.
- TargetUserID string `json:"target_user_id"`
-}
-
-// QueryInvitesForUserResponse is a response to QueryInvitesForUser
-// This is used when accepting an invite or rejecting a invite to tell which
-// remote matrix servers to contact.
-type QueryInvitesForUserResponse struct {
- // A list of matrix user IDs for each sender of an active invite targeting
- // the requested user ID.
- InviteSenderUserIDs []string `json:"invite_sender_user_ids"`
-}
-
// QueryServerAllowedToSeeEventRequest is a request to QueryServerAllowedToSeeEvent
type QueryServerAllowedToSeeEventRequest struct {
// The event ID to look up invites in.