summary refs log tree commit diff
path: root/synapse/storage/presence.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-07 12:06:01 +0100
committerErik Johnston <erik@matrix.org>2015-04-07 12:06:22 +0100
commitc8d3f6486da29b1e0e36b447948b8971bdf05fd3 (patch)
tree52d37bb4929771b412029b4c17903f5a1512faed /synapse/storage/presence.py
parentDon't use AUTOINCREMENT, use an in memory version (diff)
downloadsynapse-c8d3f6486da29b1e0e36b447948b8971bdf05fd3.tar.xz
Implement or_ignore flag on inserts
Diffstat (limited to 'synapse/storage/presence.py')
-rw-r--r--synapse/storage/presence.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/presence.py b/synapse/storage/presence.py
index 87fba55439..22ec94bc16 100644
--- a/synapse/storage/presence.py
+++ b/synapse/storage/presence.py
@@ -57,6 +57,7 @@ class PresenceStore(SQLBaseStore):
             values={"observed_user_id": observed_localpart,
                     "observer_user_id": observer_userid},
             desc="allow_presence_visible",
+            or_ignore=True,
         )
 
     def disallow_presence_visible(self, observed_localpart, observer_userid):