diff options
author | Šimon Brandner <simon.bra.ag@gmail.com> | 2022-08-05 17:09:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 11:09:33 -0400 |
commit | ab18441573dc14cea1fe4082b2a89b9d392a4b9f (patch) | |
tree | 6d2b45d497dc30c7ff36e096f4916b2183e530ed /synapse/rest/client/notifications.py | |
parent | Use literals in place of `HTTPStatus` constants in tests (#13463) (diff) | |
download | synapse-ab18441573dc14cea1fe4082b2a89b9d392a4b9f.tar.xz |
Support stable identifiers for MSC2285: private read receipts. (#13273)
This adds support for the stable identifiers of MSC2285 while continuing to support the unstable identifiers behind the configuration flag. These will be removed in a future version.
Diffstat (limited to 'synapse/rest/client/notifications.py')
-rw-r--r-- | synapse/rest/client/notifications.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/synapse/rest/client/notifications.py b/synapse/rest/client/notifications.py index 24bc7c9095..a73322a6a4 100644 --- a/synapse/rest/client/notifications.py +++ b/synapse/rest/client/notifications.py @@ -58,7 +58,12 @@ class NotificationsServlet(RestServlet): ) receipts_by_room = await self.store.get_receipts_for_user_with_orderings( - user_id, [ReceiptTypes.READ, ReceiptTypes.READ_PRIVATE] + user_id, + [ + ReceiptTypes.READ, + ReceiptTypes.READ_PRIVATE, + ReceiptTypes.UNSTABLE_READ_PRIVATE, + ], ) notif_event_ids = [pa.event_id for pa in push_actions] |