summary refs log tree commit diff
path: root/tests/events/test_auto_accept_invites.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix a couple type annotations in the `RootConfig`/`Config` (#18409)Eric Eastwood2025-05-131-2/+3
| | | | | | | | | Fix a couple type annotations in the `RootConfig`/`Config`. Discovered while cribbing this code for another project. It's really sucks that `mypy` type checking doesn't catch this. I assume this is because we also have a `synapse/config/_base.pyi` that overrides all of this. Still unclear to me why the `Iterable[str]` vs `StrSequence` issue wasn't caught as that's what `ConfigError` expects.
* Never autojoin deactivated & suspended users. (#18073)Will Hunt2025-01-281-1/+180
| | | | | | | | | This PR changes the logic so that deactivated users are always ignored. Suspended users were already effectively ignored as Synapse forbids a join while suspended. --------- Co-authored-by: Devon Hudson <devon.dmytro@gmail.com>
* Bring auto-accept invite logic into Synapse (#17147)devonh2024-05-211-0/+657
This PR ports the logic from the [synapse_auto_accept_invite](https://github.com/matrix-org/synapse-auto-accept-invite) module into synapse. I went with the naive approach of injecting the "module" next to where third party modules are currently loaded. If there is a better/preferred way to handle this, I'm all ears. It wasn't obvious to me if there was a better location to add this logic that would cleanly apply to all incoming invite events. Relies on https://github.com/element-hq/synapse/pull/17166 to fix linter errors.