aboutsummaryrefslogtreecommitdiff
path: root/federationapi/consumers
diff options
context:
space:
mode:
authorTill Faelligen <2353100+S7evinK@users.noreply.github.com>2022-12-06 13:27:33 +0100
committerTill Faelligen <2353100+S7evinK@users.noreply.github.com>2022-12-06 13:27:33 +0100
commitded43e0f2d07adc399da5962454d9873021b59ac (patch)
treeff486dbf103b61c7ba52dbfd17a308d02a731a96 /federationapi/consumers
parent75834783055b0c70f8b411d9c3741e57461832f0 (diff)
Fix issue with sending presence events to invalid servers
Diffstat (limited to 'federationapi/consumers')
-rw-r--r--federationapi/consumers/roomserver.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/federationapi/consumers/roomserver.go b/federationapi/consumers/roomserver.go
index d16af662..0c1080af 100644
--- a/federationapi/consumers/roomserver.go
+++ b/federationapi/consumers/roomserver.go
@@ -232,7 +232,7 @@ func (s *OutputRoomEventConsumer) processMessage(ore api.OutputNewRoomEvent, rew
}
func (s *OutputRoomEventConsumer) sendPresence(roomID string, addedJoined []types.JoinedHost) {
- joined := make([]gomatrixserverlib.ServerName, len(addedJoined))
+ joined := make([]gomatrixserverlib.ServerName, 0, len(addedJoined))
for _, added := range addedJoined {
joined = append(joined, added.ServerName)
}