summary refs log tree commit diff
path: root/synapse/storage/receipts.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-05-19 14:50:23 +0100
committerGitHub <noreply@github.com>2017-05-19 14:50:23 +0100
commitab4ee2e52410307343a8c813801de2c6ba04d511 (patch)
treee0895bc0bd96a461ed452da7a617142596471762 /synapse/storage/receipts.py
parentMerge pull request #2234 from matrix-org/erikj/fix_push (diff)
parentFix invalidation of get_users_with_read_receipts_in_room (diff)
downloadsynapse-ab4ee2e52410307343a8c813801de2c6ba04d511.tar.xz
Merge pull request #2236 from matrix-org/erikj/invalidation
Fix invalidation of get_users_with_read_receipts_in_room
Diffstat (limited to 'synapse/storage/receipts.py')
-rw-r--r--synapse/storage/receipts.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/receipts.py b/synapse/storage/receipts.py
index efb90c3c91..f42b8014c7 100644
--- a/synapse/storage/receipts.py
+++ b/synapse/storage/receipts.py
@@ -45,7 +45,9 @@ class ReceiptsStore(SQLBaseStore):
             return
 
         # Returns an ObservableDeferred
-        res = self.get_users_with_read_receipts_in_room.cache.get((room_id,), None)
+        res = self.get_users_with_read_receipts_in_room.cache.get(
+            room_id, None, update_metrics=False,
+        )
 
         if res:
             if isinstance(res, defer.Deferred) and res.called: