diff options
author | Erik Johnston <erik@matrix.org> | 2020-12-04 15:52:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-04 15:52:49 +0000 |
commit | df4b1e9c74d56d79c274149b0dfb0fd5305c7659 (patch) | |
tree | dfdc8d1a66cb36975ded614070288ab47f8eee06 /synapse/storage | |
parent | Add additional validation to pusher URLs. (#8865) (diff) | |
download | synapse-df4b1e9c74d56d79c274149b0dfb0fd5305c7659.tar.xz |
Pass room_id to get_auth_chain_difference (#8879)
This is so that we can choose which algorithm to use based on the room ID.
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/databases/main/event_federation.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/event_federation.py b/synapse/storage/databases/main/event_federation.py index 2e07c37340..ebffd89251 100644 --- a/synapse/storage/databases/main/event_federation.py +++ b/synapse/storage/databases/main/event_federation.py @@ -137,7 +137,9 @@ class EventFederationWorkerStore(EventsWorkerStore, SignatureWorkerStore, SQLBas return list(results) - async def get_auth_chain_difference(self, state_sets: List[Set[str]]) -> Set[str]: + async def get_auth_chain_difference( + self, room_id: str, state_sets: List[Set[str]] + ) -> Set[str]: """Given sets of state events figure out the auth chain difference (as per state res v2 algorithm). |