diff options
author | David Baker <dave@matrix.org> | 2016-04-29 19:27:03 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-04-29 19:27:03 +0100 |
commit | 8f99cd5996a11bb1cc50dce35542b2591426fdbc (patch) | |
tree | d3e7f04b43bed2616be4481476de0fee58e40527 /synapse/storage | |
parent | Remove unnecessary if (diff) | |
download | synapse-8f99cd5996a11bb1cc50dce35542b2591426fdbc.tar.xz |
Oops, actually specify the user id
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/event_push_actions.py | 4 |
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( |