diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-12-08 12:26:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-08 12:26:29 -0500 |
commit | d93362d87fbbf4941da06ade65eaf5df1672bccb (patch) | |
tree | c357e1655faa4e6c286b0ed3493ffc69ae9a529c /synapse/api | |
parent | Clean up `synapse.rest.admin` (#11535) (diff) | |
download | synapse-d93362d87fbbf4941da06ade65eaf5df1672bccb.tar.xz |
Add a constant for receipt types (m.read). (#11531)
And expand some type hints in the receipts storage module.
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/constants.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py index f7d29b4319..52c083a20b 100644 --- a/synapse/api/constants.py +++ b/synapse/api/constants.py @@ -253,5 +253,9 @@ class GuestAccess: FORBIDDEN: Final = "forbidden" +class ReceiptTypes: + READ: Final = "m.read" + + class ReadReceiptEventFields: MSC2285_HIDDEN: Final = "org.matrix.msc2285.hidden" |