mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 12:52:24 +03:00
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:
parent
eeabe892a9
commit
b13cb43785
4 changed files with 21 additions and 3 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue