diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-07 12:06:01 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-07 12:06:22 +0100 |
commit | c8d3f6486da29b1e0e36b447948b8971bdf05fd3 (patch) | |
tree | 52d37bb4929771b412029b4c17903f5a1512faed /synapse/storage/presence.py | |
parent | Don't use AUTOINCREMENT, use an in memory version (diff) | |
download | synapse-c8d3f6486da29b1e0e36b447948b8971bdf05fd3.tar.xz |
Implement or_ignore flag on inserts
Diffstat (limited to 'synapse/storage/presence.py')
-rw-r--r-- | synapse/storage/presence.py | 1 |
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): |