diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2020-09-02 17:19:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 17:19:37 +0100 |
commit | 5a1dd297c3ce105a7f516d9d9fe87b94b9d356c8 (patch) | |
tree | e7be5283e17b93e1e9de477b5cf08a8d87bfcbb3 /synapse/storage/databases/main/events.py | |
parent | Refactor `_get_e2e_device_keys_for_federation_query_txn` (#8225) (diff) | |
download | synapse-5a1dd297c3ce105a7f516d9d9fe87b94b9d356c8.tar.xz |
Re-implement unread counts (again) (#8059)
Diffstat (limited to 'synapse/storage/databases/main/events.py')
-rw-r--r-- | synapse/storage/databases/main/events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/databases/main/events.py b/synapse/storage/databases/main/events.py index 46b11e705b..b94fe7ac17 100644 --- a/synapse/storage/databases/main/events.py +++ b/synapse/storage/databases/main/events.py @@ -1298,9 +1298,9 @@ class PersistEventsStore: sql = """ INSERT INTO event_push_actions ( room_id, event_id, user_id, actions, stream_ordering, - topological_ordering, notif, highlight + topological_ordering, notif, highlight, unread ) - SELECT ?, event_id, user_id, actions, ?, ?, notif, highlight + SELECT ?, event_id, user_id, actions, ?, ?, notif, highlight, unread FROM event_push_actions_staging WHERE event_id = ? """ |