Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Allow disabled federation presence, both receiving and sending #16058

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

realtyem
Copy link
Contributor

@realtyem realtyem commented Aug 3, 2023

This should allow for not processing presence received over federation and also not sending it out over federation.

I have tests written for the room joining cases, I'm still working on the regular send and receive cases.

Set in your shared configuration:

presence:
  enabled: true
  disable_federation_presence: true

An oddity I noticed while writing some of the tests, we are queueing up presence states to send out over federation for ourselves, but they are filtered out at the federation sender level. Since that is extra traffic that goes over replication, I'll probably rip that out later on. But in the mean time, I left a comment in the one test where it'll need to be switched over to match that behavior.

Pull Request Checklist

Signed-off-by: Jason Little realtyem@gmail.com

@clokep
Copy link
Member

clokep commented Aug 3, 2023

See also #8055.

@realtyem
Copy link
Contributor Author

realtyem commented Aug 3, 2023

See also #8055.

Noted. Looks like a nice addon to do the next go around(unless you think it's worth the time of dealing with it now?)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants