summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-05-15 17:30:23 +0100
committerErik Johnston <erik@matrix.org>2019-05-15 17:30:23 +0100
commit5be34fc3e3045b3ba5a97b73ba0f25887874e622 (patch)
treedee49724772693585e4cb3ef2324e86ab00aaedd /synapse
parentActually implement idempotency (diff)
downloadsynapse-5be34fc3e3045b3ba5a97b73ba0f25887874e622.tar.xz
Actually check for None rather falsey
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/relations.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/relations.py b/synapse/storage/relations.py
index f304b8a9a4..31ef6679af 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)