mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-29 17:51:56 -06:00
Fix bug in a2f72dd9
This commit is contained in:
parent
a916b041b1
commit
163dabc498
|
@ -125,7 +125,7 @@ func (d *Database) GetJoinedHostsForRooms(ctx context.Context, roomIDs []string,
|
||||||
if excludeSelf {
|
if excludeSelf {
|
||||||
for i, server := range servers {
|
for i, server := range servers {
|
||||||
if d.IsLocalServerName(server) {
|
if d.IsLocalServerName(server) {
|
||||||
copy(servers[:i], servers[i+1:])
|
copy(servers[i:], servers[i+1:])
|
||||||
servers = servers[:len(servers)-1]
|
servers = servers[:len(servers)-1]
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue