summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-04-29 19:27:03 +0100
committerDavid Baker <dave@matrix.org>2016-04-29 19:27:03 +0100
commit8f99cd5996a11bb1cc50dce35542b2591426fdbc (patch)
treed3e7f04b43bed2616be4481476de0fee58e40527
parentRemove unnecessary if (diff)
downloadsynapse-8f99cd5996a11bb1cc50dce35542b2591426fdbc.tar.xz
Oops, actually specify the user id
-rw-r--r--synapse/storage/event_push_actions.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py
index c6625a7b08..974ceb3389 100644
--- a/synapse/storage/event_push_actions.py
+++ b/synapse/storage/event_push_actions.py
@@ -223,7 +223,9 @@ class EventPushActionsStore(SQLBaseStore):
                 "SELECT ep.room_id, MAX(e.received_ts)"
                 " FROM event_push_actions AS ep"
                 " JOIN events e ON ep.room_id = e.room_id AND ep.event_id = e.event_id"
-                " GROUP BY ep.room_id"
+                " WHERE ep.user_id = ?"
+                " GROUP BY ep.room_id",
+                (user_id,)
             )
             return txn.fetchall()
         result = yield self.runInteraction(