aboutsummaryrefslogtreecommitdiff
path: root/federationapi/storage/interface.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-01-25 17:00:39 +0000
committerGitHub <noreply@github.com>2022-01-25 17:00:39 +0000
commit8a1bc70524ecf536c8baafd5f0c312a89693ccc5 (patch)
treed745c871eee2cb81a103f829f0652c7a5e1ea666 /federationapi/storage/interface.go
parent49a618dfe2921ab451002e926e029d3c9fe1c0ae (diff)
Exclude our own server name in `GetJoinedHostsForRooms` (#2110)
* Exclude our own servername * Make excluding self behaviour optional
Diffstat (limited to 'federationapi/storage/interface.go')
-rw-r--r--federationapi/storage/interface.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/storage/interface.go b/federationapi/storage/interface.go
index a36f5152..21a919f6 100644
--- a/federationapi/storage/interface.go
+++ b/federationapi/storage/interface.go
@@ -32,7 +32,7 @@ type Database interface {
GetJoinedHosts(ctx context.Context, roomID string) ([]types.JoinedHost, error)
GetAllJoinedHosts(ctx context.Context) ([]gomatrixserverlib.ServerName, error)
// GetJoinedHostsForRooms returns the complete set of servers in the rooms given.
- GetJoinedHostsForRooms(ctx context.Context, roomIDs []string) ([]gomatrixserverlib.ServerName, error)
+ GetJoinedHostsForRooms(ctx context.Context, roomIDs []string, excludeSelf bool) ([]gomatrixserverlib.ServerName, error)
PurgeRoomState(ctx context.Context, roomID string) error
StoreJSON(ctx context.Context, js string) (*shared.Receipt, error)