diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-07-26 07:19:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 07:19:20 -0400 |
commit | 8b603299bf2d15bef1db867e08ac90c0f753cc32 (patch) | |
tree | 24976870b8ce83e082105389576be1fef37da3b7 /synapse/storage | |
parent | Disable autocorrect and autocaptialisation when entering username for SSO reg... (diff) | |
download | synapse-8b603299bf2d15bef1db867e08ac90c0f753cc32.tar.xz |
Remove unused argument for get_relations_for_event. (#13383)
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/databases/main/relations.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/synapse/storage/databases/main/relations.py b/synapse/storage/databases/main/relations.py index b457bc189e..7bd27790eb 100644 --- a/synapse/storage/databases/main/relations.py +++ b/synapse/storage/databases/main/relations.py @@ -62,7 +62,6 @@ class RelationsWorkerStore(SQLBaseStore): room_id: str, relation_type: Optional[str] = None, event_type: Optional[str] = None, - aggregation_key: Optional[str] = None, limit: int = 5, direction: str = "b", from_token: Optional[StreamToken] = None, @@ -76,7 +75,6 @@ class RelationsWorkerStore(SQLBaseStore): room_id: The room the event belongs to. relation_type: Only fetch events with this relation type, if given. event_type: Only fetch events with this event type, if given. - aggregation_key: Only fetch events with this aggregation key, if given. limit: Only fetch the most recent `limit` events. direction: Whether to fetch the most recent first (`"b"`) or the oldest first (`"f"`). @@ -105,10 +103,6 @@ class RelationsWorkerStore(SQLBaseStore): where_clause.append("type = ?") where_args.append(event_type) - if aggregation_key: - where_clause.append("aggregation_key = ?") - where_args.append(aggregation_key) - pagination_clause = generate_pagination_where_clause( direction=direction, column_names=("topological_ordering", "stream_ordering"), |