1
0
Files
synapse/tests
Eric Eastwood 2c7c5c223c Fix exception thrown when attempting to notify appservice sender
Fix https://github.com/matrix-org/synapse/issues/11025

Before in [`user_directory_handler._handle_deltas`, we just checked for `is_support_user(user_id)`](https://github.com/matrix-org/synapse/pull/10960/files#diff-e02a9a371e03b8615b53c6b6552f76fc7d3ef58931ca64d28b3512caf305449fL232) which works just fine.
Now with https://github.com/matrix-org/synapse/pull/10960, we [call `should_include_local_user_in_dir`](https://github.com/matrix-org/synapse/pull/10960/files#diff-e02a9a371e03b8615b53c6b6552f76fc7d3ef58931ca64d28b3512caf305449fR229) which does a [bunch of additional checks](e79ee48313/synapse/storage/databases/main/user_directory.py (L382-L398)) which aren't all compatible with the main appservice sender (main bridge user/sender). More specifically, we can't check the `users` database table for whether the user is deactivated.

In the `should_include_local_user_in_dir` checks, we should return early if we encounter a main appservice sender before the incompatible checks.
2021-10-07 18:04:00 -05:00
..
2021-06-02 16:37:59 +01:00
2021-09-01 14:58:14 +01:00
2021-07-13 11:43:15 +01:00