Fix C&P mistake, don't send to sentry

This commit is contained in:
Till Faelligen 2022-11-04 12:39:34 +01:00
parent f6f70150fb
commit 1b479439ff
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -19,7 +19,6 @@ import (
"encoding/json"
"strconv"
"github.com/getsentry/sentry-go"
"github.com/matrix-org/dendrite/federationapi/queue"
"github.com/matrix-org/dendrite/federationapi/storage"
fedTypes "github.com/matrix-org/dendrite/federationapi/types"
@ -112,10 +111,10 @@ func (t *OutputPresenceConsumer) onMessage(ctx context.Context, msgs []*nats.Msg
return true
}
// send this key change to all servers who share rooms with this user.
// send this presence to all servers who share rooms with this user.
joined, err := t.db.GetJoinedHostsForRooms(t.ctx, queryRes.RoomIDs, true)
if err != nil {
sentry.CaptureException(err)
log.WithError(err).Error("failed to get joined hosts")
return true
}