From 163dabc498a2b45e9b3f8fee6e24114247192bfa Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 16 Nov 2022 15:10:33 +0000 Subject: [PATCH] Fix bug in a2f72dd9 --- federationapi/storage/shared/storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/storage/shared/storage.go b/federationapi/storage/shared/storage.go index f86ae2e0..1e1ea9e1 100644 --- a/federationapi/storage/shared/storage.go +++ b/federationapi/storage/shared/storage.go @@ -125,7 +125,7 @@ func (d *Database) GetJoinedHostsForRooms(ctx context.Context, roomIDs []string, if excludeSelf { for i, server := range servers { if d.IsLocalServerName(server) { - copy(servers[:i], servers[i+1:]) + copy(servers[i:], servers[i+1:]) servers = servers[:len(servers)-1] break }