Send presence to joined hosts only (#2858)

Send presence events only to rooms the user is participating, not all
servers we know about.
Should fix #2752
This commit is contained in:
Till 2022-11-04 13:23:00 +01:00 committed by GitHub
parent eeabe892a9
commit b13cb43785
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 3 deletions

View file

@ -164,7 +164,7 @@ func NewInternalAPI(
}
presenceConsumer := consumers.NewOutputPresenceConsumer(
base.ProcessContext, cfg, js, queues, federationDB,
base.ProcessContext, cfg, js, queues, federationDB, rsAPI,
)
if err = presenceConsumer.Start(); err != nil {
logrus.WithError(err).Panic("failed to start presence consumer")