diff --git a/synapse/storage/relations.py b/synapse/storage/relations.py index f304b8a9a48a7860164dd754e5babefb3064ab25..31ef6679af6d9943368145bfe2589ce91b326821 100644 --- a/synapse/storage/relations.py +++ b/synapse/storage/relations.py @@ -65,11 +65,11 @@ class RelationsStore(SQLBaseStore): where_clause = ["relates_to_id = ?"] where_args = [event_id] - if relation_type: + if relation_type is not None: where_clause.append("relation_type = ?") where_args.append(relation_type) - if event_type: + if event_type is not None: where_clause.append("type = ?") where_args.append(event_type)