summary refs log tree commit diff
path: root/synapse/events
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-10-06 11:32:53 +0100
committerGitHub <noreply@github.com>2020-10-06 11:32:53 +0100
commit9c0b168cff3a225fe2506dd3a079f2a7ddaf62d2 (patch)
tree62cc7a9187956c82de775b400644413ed6b9c587 /synapse/events
parentDon't bother responding to client requests that have already disconnected (#8... (diff)
parentFix third-party event modules for `check_visibility_can_be_modified` check (diff)
downloadsynapse-9c0b168cff3a225fe2506dd3a079f2a7ddaf62d2.tar.xz
Merge pull request #8467 from matrix-org/rav/fix_3pevent_rules
Fix third-party event modules for `check_visibility_can_be_modified` check
Diffstat (limited to 'synapse/events')
-rw-r--r--synapse/events/third_party_rules.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/events/third_party_rules.py b/synapse/events/third_party_rules.py
index fed459198a..1ca77519d5 100644
--- a/synapse/events/third_party_rules.py
+++ b/synapse/events/third_party_rules.py
@@ -131,7 +131,9 @@ class ThirdPartyEventRules:
         if self.third_party_rules is None:
             return True
 
-        check_func = getattr(self.third_party_rules, "check_visibility_can_be_modified")
+        check_func = getattr(
+            self.third_party_rules, "check_visibility_can_be_modified", None
+        )
         if not check_func or not isinstance(check_func, Callable):
             return True