summary refs log tree commit diff
diff options
context:
space:
mode:
-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(