mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 02:40:22 +00:00
Actually check for None rather falsey
This commit is contained in:
parent
e6459c26b4
commit
5be34fc3e3
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue