mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-31 05:12:46 +00:00
Remove unused internal APIs (#1117)
This commit is contained in:
parent
89d61c4877
commit
25cd2dd1c9
11 changed files with 3 additions and 165 deletions
|
@ -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,
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue