summary refs log tree commit diff
path: root/synapse/storage/data_stores
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-06-10 14:24:01 +0100
committerBrendan Abolivier <babolivier@matrix.org>2020-06-10 14:24:01 +0100
commit6f6a4bfc079c51f130630237cf86488179bae63e (patch)
tree546bfd72b75370214b96112d70e53ae504a6c0a3 /synapse/storage/data_stores
parentMerge branch 'develop' into babolivier/mark_unread (diff)
downloadsynapse-6f6a4bfc079c51f130630237cf86488179bae63e.tar.xz
Rename dont_push into mark_unread
Diffstat (limited to 'synapse/storage/data_stores')
-rw-r--r--synapse/storage/data_stores/main/event_push_actions.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/storage/data_stores/main/event_push_actions.py b/synapse/storage/data_stores/main/event_push_actions.py
index 8ad7a306f8..a86a6a1bed 100644
--- a/synapse/storage/data_stores/main/event_push_actions.py
+++ b/synapse/storage/data_stores/main/event_push_actions.py
@@ -1,6 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright 2015 OpenMarket Ltd
-# Copyright 2018 New Vector Ltd
+# Copyright 2015-2020 The Matrix.org Foundation C.I.C.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -437,7 +436,7 @@ class EventPushActionsWorkerStore(SQLBaseStore):
         # can be used to insert into the `event_push_actions_staging` table.
         def _gen_entry(user_id, actions):
             is_highlight = 1 if _action_has_highlight(actions) else 0
-            notif = 0 if "dont_push" in actions else 1
+            notif = 0 if "mark_unread" in actions else 1
             return (
                 event_id,  # event_id column
                 user_id,  # user_id column