Implement MSC3930: polls push rules (#14787)

This commit is contained in:
Andrew Morgan 2023-01-19 12:47:10 +00:00 committed by GitHub
parent 2069231645
commit a7b54ca8d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 114 additions and 13 deletions

View file

@ -146,6 +146,13 @@ class ExperimentalConfig(Config):
"required to communicate account data deletions to clients."
)
# MSC3381: Polls.
# In practice, supporting polls in Synapse only requires an implementation of
# MSC3930: Push rules for MSC3391 polls; which is what this option enables.
self.msc3381_polls_enabled: bool = experimental.get(
"msc3381_polls_enabled", False
)
# MSC3912: Relation-based redactions.
self.msc3912_enabled: bool = experimental.get("msc3912_enabled", False)