mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 11:05:49 +03:00
e46d5f3586
Add an `is_mine_server_name` method, similar to `is_mine_id`. Ideally we would use this consistently, instead of sometimes comparing against `hs.hostname` and other times reaching into `hs.config.server.server_name`. Also fix a bug in the tests where `hs.hostname` would sometimes differ from `hs.config.server.server_name`. Signed-off-by: Sean Quah <seanq@matrix.org>
1 line
44 B
Text
1 line
44 B
Text
Factor out an `is_mine_server_name` method.
|