MatrixSynapse/synapse/storage/databases/main
Sean Quah e46d5f3586
Factor out an `is_mine_server_name` method (#15542)
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>
2023-05-05 15:06:22 +01:00
..
__init__.py
account_data.py
appservice.py
cache.py
censor_events.py
client_ips.py
deviceinbox.py
devices.py
directory.py
e2e_room_keys.py
end_to_end_keys.py
event_federation.py
event_push_actions.py
events.py
events_bg_updates.py
events_forward_extremities.py
events_worker.py
experimental_features.py
filtering.py
keys.py
lock.py
media_repository.py
metrics.py
monthly_active_users.py
openid.py
presence.py
profile.py
purge_events.py
push_rule.py
pusher.py
receipts.py
registration.py
rejections.py
relations.py
room.py Factor out an `is_mine_server_name` method (#15542) 2023-05-05 15:06:22 +01:00
room_batch.py
roommember.py
search.py
session.py
signatures.py
state.py
state_deltas.py
stats.py
stream.py
tags.py
transactions.py
ui_auth.py
user_directory.py
user_erasure_store.py